memory: Add more debug messages for CoW related functions

This commit is contained in:
EnderIce2
2024-11-18 04:07:08 +02:00
parent 9f34bd0192
commit 3a68b28c13
2 changed files with 3 additions and 0 deletions

View File

@ -168,7 +168,9 @@ namespace Memory
return (void *)-EPERM;
}
debug("unmapping %#lx-%#lx", Address, (uintptr_t)Address + Length);
vmm.Unmap(Address, Length);
debug("mapping cow at %#lx-%#lx", Address, (uintptr_t)Address + Length);
vmm.Map(Address, nullptr, Length, PTFlag::CoW);
debug("CoW region created at range %#lx-%#lx for pt %#lx",
Address, (uintptr_t)Address + Length, this->Table);