Add basic paged pool setup
All checks were successful
Builds / ExectOS (i686, release) (push) Successful in 34s
Builds / ExectOS (amd64, release) (push) Successful in 37s
Builds / ExectOS (i686, debug) (push) Successful in 50s
Builds / ExectOS (amd64, debug) (push) Successful in 53s

This commit is contained in:
2026-07-02 09:27:54 +02:00
parent 2b7fc5b41d
commit d164495d48

View File

@@ -261,7 +261,24 @@ XTAPI
VOID VOID
MM::Pool::InitializePagedPool(VOID) MM::Pool::InitializePagedPool(VOID)
{ {
PPOOL_DESCRIPTOR PoolDescriptor;
XTSTATUS Status;
/* Not implemented */
UNIMPLEMENTED; UNIMPLEMENTED;
/* Allocate a pool descriptor for the paged pool */
Status = MM::Allocator::AllocatePool(NonPagedPool, sizeof(POOL_DESCRIPTOR),
(PVOID *)&PoolDescriptor, TAG_MM_MEMORY_POOL);
if(Status != STATUS_SUCCESS)
{
/* Allocation failed, raise kernel panic */
KE::Crash::Panic(0x41, 0, -1, -1, -1);
}
/* Store paged pool descriptor in the pool vector and initialize it */
PoolVector[PagedPool] = PoolDescriptor;
InitializePoolDescriptor(PoolVector[PagedPool], PagedPool, 0, 0, NULLPTR);
} }
/** /**