stos: mm: Add mm/vmm.h

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 03:51:27 +00:00
parent 504a4b19b4
commit c317ed8a4d
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Virtual memory manager
* Author: Chloe M.
*/
#ifndef _MM_VMM_H_
#define _MM_VMM_H_ 1
#include <stdef.h>
#include <ke/bpal.h>
#define VALLOC_BASE 0xFFFF804000000000
#define PMA_TO_VMA(PMA) \
PTR_OFFSET((VOID *)PMA, KeBpalLoadBase())
#define VMA_TO_PMA(VMA) \
(UPTR)PTR_NOFFSET(VMA, KeBpalLoadBase())
#endif /* !_MM_VMM_H_ */