stos: pmm: Add physical frame allocation

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 06:50:36 +00:00
parent ef0588512c
commit df1719fbd0
2 changed files with 28 additions and 0 deletions
+11
View File
@@ -11,9 +11,20 @@
#include <stdef.h>
/* Page frame number */
typedef UQUAD MM_PFN;
/*
* Initialize the physical memory management
*/
VOID MmInitPmm(VOID);
/*
* Request a single frame of memory
*
* Returns the page frame number on success, otherwise
* zero on failure e.g., out of memory
*/
MM_PFN MmRequestFrame(VOID);
#endif /* !_MM_PMM_H_ */