sdk: ptapi: Add memory management API

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-11 04:47:58 -04:00
parent 7cb153f98c
commit 89841b3563
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Memory management API
* Author: Chloe M.
*/
#ifndef _PTAPI_PTMM_H_
#define _PTAPI_PTMM_H_ 1
#include <ptdef.h>
/* Protection flags type */
typedef USHORT MM_PROT;
/* Page-level protection flags */
#define PAGE_READ 0x00
#define PAGE_WRITE BIT(0)
#define PAGE_EXEC BIT(1)
#if defined(_KERNEL)
#define PAGE_USER BIT(2)
#endif /* !_KERNEL */
#endif /* !_PTAPI_PTMM_H_ */