fix: remove redundant paging warning

This commit is contained in:
2026-04-18 17:39:46 +02:00
parent 832a52e0a5
commit 3b89ab8a75
+3 -7
View File
@@ -43,13 +43,9 @@ namespace Memory::VMM {
struct VirtualAddress { struct VirtualAddress {
std::uint64_t address; std::uint64_t address;
VirtualAddress(std::uint64_t newAddress) { // Page-table index extraction works for any byte address. Callers that
if (newAddress % 0x1000 != 0) { // truly require page alignment validate that explicitly before mapping.
Kt::KernelLogStream(Kt::WARNING, "VMM") << "VirtualAddress object created with non-aligned value."; VirtualAddress(std::uint64_t newAddress) : address(newAddress) {}
}
address = newAddress;
}
uint64_t GetL4Index() { uint64_t GetL4Index() {
return (address >> 39) & 0x1ff; return (address >> 39) & 0x1ff;