fix: remove redundant paging warning
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user