Add definition for guarded PTE flag and remove hardcoded value
All checks were successful
Builds / ExectOS (i686, debug) (push) Successful in 31s
Builds / ExectOS (amd64, debug) (push) Successful in 32s
Builds / ExectOS (amd64, release) (push) Successful in 39s
Builds / ExectOS (i686, release) (push) Successful in 36s

This commit is contained in:
2026-02-25 12:14:26 +01:00
parent a136f21f4b
commit 7a44901064
3 changed files with 3 additions and 1 deletions

View File

@@ -60,6 +60,7 @@
/* PTE protection flags */
#define MM_PTE_NOEXECUTE 0x8000000000000000ULL
#define MM_PTE_GUARDED 0x8000000000000018ULL
#define MM_PTE_PROTECT 0x8000000000000612ULL
/* PTE cache flags */

View File

@@ -56,6 +56,7 @@
/* PTE protection flags */
#define MM_PTE_NOEXECUTE 0x00000000
#define MM_PTE_GUARDED 0x00000018
#define MM_PTE_PROTECT 0x00000612
/* PTE cache flags */

View File

@@ -52,7 +52,7 @@ MM::KernelPool::AllocateKernelStack(OUT PVOID *Stack,
}
/* Set up a template for an invalid PTE */
MM::Paging::SetPte(&InvalidPte, 0, 0x18);
MM::Paging::SetPte(&InvalidPte, 0, MM_PTE_GUARDED);
/* Set up a template for a valid, writable stack PTE */
MM::Paging::ClearPte(&TempPte);