2026-01-28 17:34:08 +11:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "efiMemory.h"
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include "Bitmap.h"
|
|
|
|
|
#include "memory.h"
|
|
|
|
|
|
2026-01-28 17:46:17 +11:00
|
|
|
class PageFrameAllocator {
|
2026-01-28 17:34:08 +11:00
|
|
|
public:
|
|
|
|
|
void ReadEFIMemoryMap(EFI_MEMORY_DESCRIPTOR* mMap, size_t mMapSize, size_t mMapDescSize);
|
2026-01-28 17:46:17 +11:00
|
|
|
Bitmap PageBitmap;
|
2026-01-28 17:34:08 +11:00
|
|
|
|
|
|
|
|
private:
|
2026-01-28 17:46:17 +11:00
|
|
|
void InitBitmap(size_t bitmapSize, void* bufferAddress);
|
|
|
|
|
};
|