Add definition for guarded PTE flag and remove hardcoded value
Todas as verificações foram bem sucedidas
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

Esse commit está contido em:
2026-02-25 12:14:26 +01:00
commit 7a44901064
3 arquivos alterados com 3 adições e 1 exclusões

Ver Arquivo

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

Ver Arquivo

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

Ver Arquivo

@@ -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);