From 6279a4838f5d35e2639a0fd2fbfdbdbcce68a5e2 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 26 Sep 2005 05:03:28 +0000 Subject: [PATCH] - Remove some deprecated files. svn path=/trunk/; revision=18080 --- reactos/ntoskrnl/ps/i386/continue.c | 93 ----------------------------- reactos/ntoskrnl/rtl/debug.c | 0 2 files changed, 93 deletions(-) delete mode 100644 reactos/ntoskrnl/ps/i386/continue.c delete mode 100644 reactos/ntoskrnl/rtl/debug.c diff --git a/reactos/ntoskrnl/ps/i386/continue.c b/reactos/ntoskrnl/ps/i386/continue.c deleted file mode 100644 index 820e21359f2..00000000000 --- a/reactos/ntoskrnl/ps/i386/continue.c +++ /dev/null @@ -1,93 +0,0 @@ -/* $Id$ - * - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS kernel - * FILE: ntoskrnl/ps/i386/continue.c - * PURPOSE: i386 implementation of NtContinue() - * - * PROGRAMMERS: Royce Mitchell III, - * kjk_hyperion - */ - -/* INCLUDES ****************************************************************/ - -#include -#define NDEBUG -#include - -VOID STDCALL -KeRosDumpStackFrames ( PULONG Frame, ULONG FrameCount ); - -/* - * @implemented - */ -NTSTATUS STDCALL -NtContinue( - IN PCONTEXT Context, - IN BOOLEAN TestAlert) -{ - PKTHREAD Thread = KeGetCurrentThread(); - PKTRAP_FRAME TrapFrame = Thread->TrapFrame; - PKTRAP_FRAME PrevTrapFrame = (PKTRAP_FRAME)TrapFrame->Edx; - PFX_SAVE_AREA FxSaveArea; - KIRQL oldIrql; - -#ifndef NDEBUG - DPRINT("NtContinue: Context: Eip=0x%x, Esp=0x%x\n", Context->Eip, Context->Esp ); - PULONG Frame = 0; - __asm__("mov %%ebp, %%ebx" : "=b" (Frame) : ); - DPRINT( "NtContinue(): Ebp=%x, prev/TF=%x/%x\n", Frame, Frame[0], TrapFrame ); - KeRosDumpStackFrames(NULL,5); -#endif - - if (Context == NULL) - { - DPRINT1("NtContinue called with NULL Context\n"); - return STATUS_INVALID_PARAMETER; - } - - if (TrapFrame == NULL) - { - CPRINT("NtContinue called but TrapFrame was NULL\n"); - KEBUGCHECK(0); - } - - /* - * Copy the supplied context over the register information that was saved - * on entry to kernel mode, it will then be restored on exit - * FIXME: Validate the context - */ - KeContextToTrapFrame(Context, TrapFrame); - - /* - * Put the floating point context into the thread's FX_SAVE_AREA - * and make sure it is reloaded when needed. - */ - FxSaveArea = (PFX_SAVE_AREA)((ULONG_PTR)Thread->InitialStack - sizeof(FX_SAVE_AREA)); - if (KiContextToFxSaveArea(FxSaveArea, Context)) - { - Thread->NpxState = NPX_STATE_VALID; - KeRaiseIrql(DISPATCH_LEVEL, &oldIrql); - if (KeGetCurrentPrcb()->NpxThread == Thread) - { - KeGetCurrentPrcb()->NpxThread = NULL; - Ke386SetCr0(Ke386GetCr0() | X86_CR0_TS); - } - else - { - ASSERT((Ke386GetCr0() & X86_CR0_TS) == X86_CR0_TS); - } - KeLowerIrql(oldIrql); - } - - if (TestAlert) - { - KeTestAlertThread(TrapFrame->PreviousMode); - } - - /* Restore the user context */ - Thread->TrapFrame = PrevTrapFrame; - __asm__("mov %%ebx, %%esp;\n" "jmp _KiServiceExit": : "b" (TrapFrame)); - - return STATUS_SUCCESS; /* this doesn't actually happen b/c KeRosTrapReturn() won't return */ -} diff --git a/reactos/ntoskrnl/rtl/debug.c b/reactos/ntoskrnl/rtl/debug.c deleted file mode 100644 index e69de29bb2d..00000000000