feat(mm): add bitmap physical frame allocator

This commit is contained in:
dualfroz committed 2026-08-25 13:06:40 +02:00
1 parent 371b50a3a5
commit ef45af5077
2 files changed
+183

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef FROSTBYTE_PMM_H
#define FROSTBYTE_PMM_H
#include "types.h"
#define frameSize 4096
void pmmInit(uint64 multibootInfo, uint64 protectedEnd);
uint64 pmmAlloc(void);
void pmmFree(uint64 frame);
void pmmReserve(uint64 start, uint64 size);
uint64 pmmReservedEnd(void);
uint64 pmmTotalFrames(void);
uint64 pmmUsedFrames(void);
uint64 pmmFreeFrames(void);
uint64 pmmTotalBytes(void);
#endif