mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
e1ef078741
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line): /DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible. /DEBUGPORT=FOO --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...) /DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port. svn path=/branches/kd++/; revision=58883
46 lines
835 B
C
46 lines
835 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: lib/rossym/initum.c
|
|
* PURPOSE: Initialize library for use in user mode
|
|
*
|
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
|
|
static PVOID
|
|
RosSymAllocMemUM(ULONG_PTR Size)
|
|
{
|
|
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
|
|
}
|
|
|
|
static VOID
|
|
RosSymFreeMemUM(PVOID Area)
|
|
{
|
|
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
|
|
}
|
|
|
|
static BOOLEAN
|
|
RosSymGetMemUM(PVOID FileContext, ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
VOID
|
|
RosSymInitUserMode(VOID)
|
|
{
|
|
static ROSSYM_CALLBACKS KmCallbacks =
|
|
{
|
|
RosSymAllocMemUM,
|
|
RosSymFreeMemUM,
|
|
RosSymZwReadFile,
|
|
RosSymZwSeekFile,
|
|
RosSymGetMemUM
|
|
};
|
|
|
|
RosSymInit(&KmCallbacks);
|
|
}
|
|
|
|
/* EOF */
|