chore: general cleanup in code (removed unused includes and cosmetic stuff

This commit is contained in:
karina
2026-05-02 22:43:32 +04:00
parent b519e69fbd
commit 272b9c8998
10 changed files with 12 additions and 14 deletions
+2 -1
View File
@@ -25,11 +25,12 @@ enum {
kVMKernelVMA = 0xFFFFFFFF80000000,
kHHDMOffset = 0xFFFF888000000000,
kVMFbVirtBase = 0xFFFFFFFFFC000000,
kKernelPhysBase = 0x40100000,
};
static inline Address VMKernelVirtToPhys(Address virt) {
return virt - 0xFFFFFFFF80100000 + 0x40100000; // TODO: hardcode is awful
return virt - 0xFFFFFFFF80100000 + kKernelPhysBase;
}
static inline Address VMPhysToHHDM(Address phys) {