mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
4f505e46f5
- Arty: Add usermode addresses translation support. WIP. svn path=/branches/cmake-bringup/; revision=50033
46 lines
855 B
C
46 lines
855 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)
|
|
*/
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <windows.h>
|
|
#include <reactos/rossym.h>
|
|
#include "rossympriv.h"
|
|
#define NTOS_MODE_USER
|
|
#include <ndk/ntndk.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
static PVOID
|
|
RosSymAllocMemUM(ULONG_PTR Size)
|
|
{
|
|
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
|
|
}
|
|
|
|
static VOID
|
|
RosSymFreeMemUM(PVOID Area)
|
|
{
|
|
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
|
|
}
|
|
|
|
VOID
|
|
RosSymInitUserMode(VOID)
|
|
{
|
|
static ROSSYM_CALLBACKS KmCallbacks =
|
|
{
|
|
RosSymAllocMemUM,
|
|
RosSymFreeMemUM,
|
|
RosSymZwReadFile,
|
|
RosSymZwSeekFile
|
|
};
|
|
|
|
RosSymInit(&KmCallbacks);
|
|
}
|
|
|
|
/* EOF */
|