From e8c4b5cbda37e34cf03f5536bfd6d52dda08f9ee Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 9 Jul 2026 20:51:56 +0200 Subject: [PATCH] Stub out process and thread deletion functions --- xtoskrnl/includes/ps/process.hh | 1 + xtoskrnl/includes/ps/thread.hh | 1 + xtoskrnl/ps/process.cc | 17 +++++++++++++++++ xtoskrnl/ps/thread.cc | 17 +++++++++++++++++ 4 files changed, 36 insertions(+) diff --git a/xtoskrnl/includes/ps/process.hh b/xtoskrnl/includes/ps/process.hh index 17338f6..8d2adaa 100644 --- a/xtoskrnl/includes/ps/process.hh +++ b/xtoskrnl/includes/ps/process.hh @@ -22,6 +22,7 @@ namespace PS public: STATIC XTAPI XTSTATUS CreateIdleProcess(IN PKPROCESSOR_CONTROL_BLOCK Prcb); + STATIC XTAPI VOID DeleteProcess(IN PVOID ProcessObject); STATIC XTFASTCALL PEPROCESS GetCurrentProcess(VOID); STATIC XTFASTCALL PEPROCESS GetSystemProcess(VOID); }; diff --git a/xtoskrnl/includes/ps/thread.hh b/xtoskrnl/includes/ps/thread.hh index bb66808..dd3ff57 100644 --- a/xtoskrnl/includes/ps/thread.hh +++ b/xtoskrnl/includes/ps/thread.hh @@ -20,6 +20,7 @@ namespace PS public: STATIC XTAPI XTSTATUS CreateIdleThread(IN PKPROCESSOR_CONTROL_BLOCK Prcb, IN PVOID Stack); + STATIC XTAPI VOID DeleteThread(IN PVOID ThreadObject); }; } diff --git a/xtoskrnl/ps/process.cc b/xtoskrnl/ps/process.cc index d54013d..795bebd 100644 --- a/xtoskrnl/ps/process.cc +++ b/xtoskrnl/ps/process.cc @@ -50,6 +50,23 @@ PS::Process::CreateIdleProcess(IN PKPROCESSOR_CONTROL_BLOCK Prcb) return KE::KThread::InitializeIdleThread(IdleProcess, IdleThread, Prcb, AR::ProcessorSupport::GetBootStack()); } +/** + * Deletes a Process object when the final reference is released. + * + * @param ProcessObject + * Supplies a pointer to the terminating process object. + * + * @return This routine does not return any value. + * + * @since XT 1.0 + */ +XTAPI +VOID +PS::Process::DeleteProcess(IN PVOID ProcessObject) +{ + UNIMPLEMENTED; +} + /** * Returns a pointer to the process object associated with the currently executing thread. * diff --git a/xtoskrnl/ps/thread.cc b/xtoskrnl/ps/thread.cc index 5507dc4..2e08821 100644 --- a/xtoskrnl/ps/thread.cc +++ b/xtoskrnl/ps/thread.cc @@ -61,3 +61,20 @@ PS::Thread::CreateIdleThread(IN PKPROCESSOR_CONTROL_BLOCK Prcb, /* Return success */ return STATUS_SUCCESS; } + +/** + * Deletes a Thread object when the final reference is released. + * + * @param ThreadObject + * Supplies a pointer to the terminating thread object. + * + * @return This routine does not return any value. + * + * @since XT 1.0 + */ +XTAPI +VOID +PS::Thread::DeleteThread(IN PVOID ThreadObject) +{ + UNIMPLEMENTED; +}