internal static void StackFree(UIntPtr startAddr, UIntPtr numPages, Process process, bool kernelAllocation, bool initialStack) { if (useAddressTranslation) { KernelRange.Free(startAddr, numPages, process); } else { FlatPages.StackFree(startAddr, MemoryManager.BytesFromPages(numPages), process, kernelAllocation, initialStack); } }
internal unsafe UIntPtr Free(UIntPtr startPage, UIntPtr numPages, Process process) { CheckAddressSpace(); if (indirect) { return(pRange->Free(startPage, numPages, process)); } else { return(range.Free(startPage, numPages, process)); } }