More dependency fixes

svn path=/trunk/; revision=1688
This commit is contained in:
David Welch 2001-03-14 16:30:08 +00:00
parent fc5f4ae9a5
commit 5e5862c7fe
5 changed files with 14 additions and 21 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.18 2001/03/14 00:21:21 dwelch Exp $
# $Id: Makefile,v 1.19 2001/03/14 16:30:08 dwelch Exp $
#
# ReactOS Operating System
#
@ -123,11 +123,6 @@ OBJECTS_MM = \
mm/mpw.o \
mm/pageop.o
OBJECTS_MM_I386 = \
mm/i386/memsafe.o \
mm/i386/page.o \
mm/i386/pfault.o
# I/O Subsystem (Io)
OBJECTS_IO = \
io/adapter.o \
@ -235,7 +230,7 @@ OBJECTS_CM = \
# Debugger Support (Dbg)
OBJECTS_DBG = \
dbg/brkpoint.o \
dbg/dbgctrl.o \
dbg/errinfo.o \
dbg/print.o

View file

@ -16,7 +16,8 @@ OBJECTS_KE_I386 := \
ke/i386/i386-mcount.o \
ke/i386/gdt.o \
ke/i386/idt.o \
ke/i386/ldt.o
ke/i386/ldt.o \
ke/i386/brkpoint.o
OBJECTS_MM_I386 := \
mm/i386/memsafe.o \

View file

@ -1,8 +1,8 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/x86/thread.c
* PURPOSE: HAL multitasking functions
* FILE: ntoskrnl/ke/i386/thread.c
* PURPOSE: Architecture multitasking functions
* PROGRAMMER: David Welch (welch@cwcom.net)
* REVISION HISTORY:
* 27/06/98: Created
@ -24,9 +24,6 @@
/* GLOBALS ***************************************************************/
static char KiNullLdt[8] = {0,};
static PETHREAD FirstThread = NULL;
extern ULONG KeSetBaseGdtSelector(ULONG Entry, PVOID Base);
KTSS KiTss;
@ -88,8 +85,6 @@ KeValidateUserContext(PCONTEXT Context)
return(STATUS_SUCCESS);
}
NTSTATUS
Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context)
{
@ -107,8 +102,8 @@ Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context)
KernelStack[2] = 0; /* EBX */
KernelStack[3] = 0; /* EBP */
KernelStack[4] = (ULONG)PsBeginThreadWithContextInternal; /* EIP */
memcpy((VOID*)&KernelStack[5], (VOID*)Context, sizeof(CONTEXT));
Thread->KernelStack = (VOID*)KernelStack;
memcpy((PVOID)&KernelStack[5], (PVOID)Context, sizeof(CONTEXT));
Thread->KernelStack = (PVOID)KernelStack;
return(STATUS_SUCCESS);
}
@ -194,7 +189,6 @@ HalInitFirstTask(PETHREAD thread)
__asm__("ltr %%ax"
: /* no output */
: "a" (TSS_SELECTOR));
FirstThread = thread;
}

View file

@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: debug.c,v 1.1 2000/12/10 23:42:01 dwelch Exp $
/* $Id: debug.c,v 1.2 2001/03/14 16:30:08 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -119,7 +119,9 @@ VOID KeTrapFrameToContext(PKTRAP_FRAME TrapFrame,
* NOTE: In the trap frame which is built on entry to a system
* call TrapFrame->Edx will actually hold the address of the
* previous TrapFrame. I don't believe leaking this information
* has security implications
* has security implications. Also EDX holds the address of the
* arguments to the system call in progress so it isn't of much
* interest to the debugger.
*/
Context->Edx = TrapFrame->Edx;
Context->Esi = TrapFrame->Esi;
@ -255,6 +257,7 @@ NTSTATUS STDCALL NtGetContextThread (IN HANDLE ThreadHandle,
return(AStatus);
}
memcpy(Context, &KContext, sizeof(CONTEXT));
ObDereferenceObject(Thread);
return(STATUS_SUCCESS);
}
}

View file

@ -50,7 +50,7 @@ DOSCLI = yes
FLOPPY_DIR = A:
# DIST_DIR should be relative from the top of the tree
DIST_DIR = dist
DOT := \\.
DOT := \.
endif
CC = $(PREFIX)gcc