fix: Various general fixes and changes

This commit is contained in:
Daniel Hammer
2025-03-07 23:57:20 +01:00
parent 6c5f6ecd47
commit 8cbb8d4472
8 changed files with 25 additions and 42 deletions
+3 -5
View File
@@ -2,7 +2,7 @@
#include "Memmap.hpp"
namespace Memory {
class Allocator {
class HeapAllocator {
LargestSection g_section;
struct Block {
@@ -16,14 +16,12 @@ namespace Memory {
Block head;
public:
Allocator(LargestSection section);
HeapAllocator(LargestSection section);
void* Request(size_t size, bool phys = false);
void* Realloc(void* ptr, size_t size);
void Free(void *pagePtr);
void Stress();
void Walk();
};
extern Allocator* g_allocator;
extern HeapAllocator* g_heap;
};