Removed obsolete functions/protypes HalInitFirstTask() and HalSwitchTask().

Renamed misleading function HalReleaseTask() to KeReleaseThread().

svn path=/trunk/; revision=2625
This commit is contained in:
Eric Kohl 2002-02-15 14:47:55 +00:00
parent 67d2ffb153
commit 9ca5a97711
7 changed files with 25 additions and 43 deletions

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: ps.h,v 1.30 2002/01/27 01:11:23 dwelch Exp $
/* $Id: ps.h,v 1.31 2002/02/15 14:44:13 ekohl Exp $
*
* FILE: ntoskrnl/ke/kthread.c
* PURPOSE: Process manager definitions
@ -537,14 +537,11 @@ NTSTATUS PsResumeThread(PETHREAD Thread, PULONG PreviousCount);
VOID
KeInitializeThread(PKPROCESS Process, PKTHREAD Thread, BOOLEAN First);
VOID HalInitFirstTask(PETHREAD thread);
NTSTATUS KeReleaseThread(PETHREAD Thread);
NTSTATUS
Ke386InitThread(PKTHREAD thread, PKSTART_ROUTINE fn, PVOID StartContext);
VOID HalTaskSwitch(PKTHREAD thread);
Ke386InitThread(PKTHREAD Thread, PKSTART_ROUTINE fn, PVOID StartContext);
NTSTATUS
Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context);
NTSTATUS HalReleaseTask(PETHREAD Thread);
VOID STDCALL PiDeleteProcess(PVOID ObjectBody);
VOID PsReapThreads(VOID);
VOID PsUnfreezeOtherThread(PETHREAD Thread);

View file

@ -1,4 +1,4 @@
/* $Id: irq.c,v 1.16 2002/01/23 23:39:25 chorns Exp $
/* $Id: irq.c,v 1.17 2002/02/15 14:47:04 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -478,7 +478,7 @@ KeDumpIrqList(VOID)
{
DPRINT("For irq %x ",i);
current_entry = isr_table[i].Flink;
current = CONTAINING_RECORD(current,KINTERRUPT,Entry);
current = CONTAINING_RECORD(current_entry,KINTERRUPT,Entry);
while (current_entry!=(&isr_table[i]))
{
DPRINT("Isr %x ",current);
@ -489,7 +489,6 @@ KeDumpIrqList(VOID)
}
}
NTSTATUS STDCALL
KeConnectInterrupt(PKINTERRUPT InterruptObject)
{
@ -591,19 +590,18 @@ KeInitializeInterrupt(PKINTERRUPT InterruptObject,
}
NTSTATUS
STDCALL
NTSTATUS STDCALL
IoConnectInterrupt(PKINTERRUPT* InterruptObject,
PKSERVICE_ROUTINE ServiceRoutine,
PVOID ServiceContext,
PKSPIN_LOCK SpinLock,
ULONG Vector,
KIRQL Irql,
KIRQL SynchronizeIrql,
KINTERRUPT_MODE InterruptMode,
BOOLEAN ShareVector,
KAFFINITY ProcessorEnableMask,
BOOLEAN FloatingSave)
PKSERVICE_ROUTINE ServiceRoutine,
PVOID ServiceContext,
PKSPIN_LOCK SpinLock,
ULONG Vector,
KIRQL Irql,
KIRQL SynchronizeIrql,
KINTERRUPT_MODE InterruptMode,
BOOLEAN ShareVector,
KAFFINITY ProcessorEnableMask,
BOOLEAN FloatingSave)
/*
* FUNCTION: Registers a driver's isr to be called when its device interrupts
* ARGUMENTS:
@ -699,8 +697,8 @@ IoDisconnectInterrupt(PKINTERRUPT InterruptObject)
* InterruptObject = isr to release
*/
{
KeDisconnectInterrupt(InterruptObject);
ExFreePool(InterruptObject);
KeDisconnectInterrupt(InterruptObject);
ExFreePool(InterruptObject);
}
/* EOF */

View file

@ -144,16 +144,4 @@ Ke386InitThread(PKTHREAD Thread,
return(STATUS_SUCCESS);
}
VOID
HalInitFirstTask(PETHREAD thread)
/*
* FUNCTION: Called to setup the HAL portion of a thread object for the
* initial thread
*/
{
}
/* EOF */

View file

@ -290,7 +290,7 @@ KiUserTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr, PVOID Cr2)
}
/*
* Kill the faulting task
* Kill the faulting process
*/
__asm__("sti\n\t");
ZwTerminateProcess(NtCurrentProcess(), STATUS_NONCONTINUABLE_EXCEPTION);

View file

@ -54,10 +54,10 @@ KeFreeStackPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address, ULONG Phy
}
NTSTATUS
HalReleaseTask(PETHREAD Thread)
KeReleaseThread(PETHREAD Thread)
/*
* FUNCTION: Releases the resource allocated for a thread by
* HalInitTaskWithContext or HalInitTask
* KeInitializeThread
* NOTE: The thread had better not be running when this is called
*/
{

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.43 2002/02/08 02:57:07 chorns Exp $
/* $Id: create.c,v 1.44 2002/02/15 14:47:55 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -328,7 +328,7 @@ PiDeleteThread(PVOID ObjectBody)
Thread->ThreadsProcess = NULL;
PiNrThreads--;
RemoveEntryList(&Thread->Tcb.ThreadListEntry);
HalReleaseTask(Thread);
KeReleaseThread(Thread);
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
DPRINT("PiDeleteThread() finished\n");
}

View file

@ -1,4 +1,4 @@
/* $Id: thread.c,v 1.88 2002/02/08 02:57:07 chorns Exp $
/* $Id: thread.c,v 1.89 2002/02/15 14:47:55 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -397,7 +397,6 @@ PsInitThreadManagment(VOID)
PsInitializeThread(NULL,&FirstThread,&FirstThreadHandle,
THREAD_ALL_ACCESS,NULL, TRUE);
HalInitFirstTask(FirstThread);
FirstThread->Tcb.State = THREAD_STATE_RUNNING;
FirstThread->Tcb.FreezeCount = 0;
KeGetCurrentKPCR()->CurrentThread = (PVOID)FirstThread;