From c824e15cdbc41b103305ce340549bd680dd1a227 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Fri, 15 May 2026 11:42:19 +0200 Subject: [PATCH] Fix stack allocation documentation and remove redundant parameter --- xtoskrnl/mm/kpool.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/xtoskrnl/mm/kpool.cc b/xtoskrnl/mm/kpool.cc index 36b3062..1673ac6 100644 --- a/xtoskrnl/mm/kpool.cc +++ b/xtoskrnl/mm/kpool.cc @@ -16,11 +16,8 @@ * @param Stack * Supplies a pointer to the memory area that will contain a new kernel stack. * - * @param LargeStack - * Determines whether the stack is large or small. - * - * @param SystemNode - * Specifies a preferred node used for new stack on multi-processor systems. + * @param StackSize + * Supplies the size of the stack to be allocated, in bytes. * * @return This routine returns a status code. * @@ -133,8 +130,8 @@ MM::KernelPool::AllocateProcessorStructures(OUT PVOID *StructuresData) * @param Stack * Supplies a pointer to the memory area containing a kernel stack. * - * @param LargeStack - * Determines whether the stack is large or small. + * @param StackSize + * Supplies the size of the stack to be freed, in bytes. * * @return This routine does not return any value. * @@ -197,6 +194,6 @@ MM::KernelPool::FreeProcessorStructures(IN PVOID StructuresData) if(StructuresData != NULLPTR) { /* Release the contiguous memory block back */ - MM::Allocator::FreePool(StructuresData, 0); + MM::Allocator::FreePool(StructuresData); } }