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
+1 -1
View File
@@ -15,7 +15,7 @@ typedef struct __attribute__((aligned(16))) VMHeapBlockHeader {
struct VMHeapBlockHeader* next;
struct VMHeapBlockHeader* previous;
UInt64 size;
bool isFree;
Boolean isFree;
} VMHeapBlockHeader;
void HeapInitialize();
-1
View File
@@ -1,6 +1,5 @@
#pragma once
#include <Types.h>
#include "../Common/bootinfo.h"
enum {
kVMPageSize = 4096,
+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) {