Files
PluralTechnology/sdk/head/ptapi/ptmm.h
T
2026-07-11 04:47:58 -04:00

26 lines
479 B
C

/*
* 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_ */