mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Support INIT section pragmas for msvc. Patch by Brezenbak.
svn path=/trunk/; revision=19732
This commit is contained in:
parent
678fb5ae5f
commit
caaa37c1ac
72 changed files with 429 additions and 12 deletions
|
@ -36,6 +36,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, CcInitView)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
|
|
||||||
#include "cm.h"
|
#include "cm.h"
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, CmImportHardwareHive)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
static BOOLEAN CmiHardwareHiveImported = FALSE;
|
static BOOLEAN CmiHardwareHiveImported = FALSE;
|
||||||
|
|
|
@ -16,6 +16,13 @@
|
||||||
|
|
||||||
#include "cm.h"
|
#include "cm.h"
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, CmInitHives)
|
||||||
|
#pragma alloc_text(INIT, CmInitializeRegistry)
|
||||||
|
#pragma alloc_text(INIT, CmInit2)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE CmiKeyType = NULL;
|
POBJECT_TYPE CmiKeyType = NULL;
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeCallbacks)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES ********************************************************************/
|
/* TYPES ********************************************************************/
|
||||||
|
|
||||||
/* Mapping for Callback Object */
|
/* Mapping for Callback Object */
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeEventImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExEventObjectType = NULL;
|
POBJECT_TYPE ExEventObjectType = NULL;
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeEventPairImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExEventPairObjectType = NULL;
|
POBJECT_TYPE ExEventPairObjectType = NULL;
|
||||||
|
|
|
@ -32,6 +32,18 @@ BOOLEAN SetupMode = TRUE;
|
||||||
|
|
||||||
VOID PspPostInitSystemProcess(VOID);
|
VOID PspPostInitSystemProcess(VOID);
|
||||||
|
|
||||||
|
static VOID INIT_FUNCTION InitSystemSharedUserPage (PCSZ ParameterLine);
|
||||||
|
VOID INIT_FUNCTION ExpDisplayNotice(VOID);
|
||||||
|
INIT_FUNCTION NTSTATUS ExpLoadInitialProcess(PHANDLE ProcessHandle, PHANDLE ThreadHandle);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, InitSystemSharedUserPage)
|
||||||
|
#pragma alloc_text(INIT, ExpDisplayNotice)
|
||||||
|
#pragma alloc_text(INIT, ExpLoadInitialProcess)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeExecutive)
|
||||||
|
#pragma alloc_text(INIT, ExInit2)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitLookasideLists)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
LIST_ENTRY ExpNonPagedLookasideListHead;
|
LIST_ENTRY ExpNonPagedLookasideListHead;
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeMutantImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MUTANT_INCREMENT
|
#ifndef MUTANT_INCREMENT
|
||||||
#define MUTANT_INCREMENT 1
|
#define MUTANT_INCREMENT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeProfileImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FIXME: NDK This structure is a *GUESS* -- Alex */
|
/* FIXME: NDK This structure is a *GUESS* -- Alex */
|
||||||
typedef struct _EPROFILE {
|
typedef struct _EPROFILE {
|
||||||
PEPROCESS Process;
|
PEPROCESS Process;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation()
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExSemaphoreObjectType;
|
POBJECT_TYPE ExSemaphoreObjectType;
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
#define TICKSPERMINUTE 600000000
|
#define TICKSPERMINUTE 600000000
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitTimeZoneInfo)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
/* Note: Bias[minutes] = UTC - local time */
|
/* Note: Bias[minutes] = UTC - local time */
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeTimerImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES ********************************************************************/
|
/* TYPES ********************************************************************/
|
||||||
|
|
||||||
/* Executive Timer Object */
|
/* Executive Timer Object */
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
#define SECS_15_OCT_1582_TO_1601 ((17 + 30 + 31 + 365 * 18 + 5) * SECSPERDAY)
|
#define SECS_15_OCT_1582_TO_1601 ((17 + 30 + 31 + 365 * 18 + 5) * SECSPERDAY)
|
||||||
#define TICKS_15_OCT_1582_TO_1601 ((ULONGLONG)SECS_15_OCT_1582_TO_1601 * TICKSPERSEC)
|
#define TICKS_15_OCT_1582_TO_1601 ((ULONGLONG)SECS_15_OCT_1582_TO_1601 * TICKSPERSEC)
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitUuids)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ****************************************************************/
|
/* GLOBALS ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpWin32kInit)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* DATA **********************************************************************/
|
/* DATA **********************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE ExWindowStationObjectType = NULL;
|
POBJECT_TYPE ExWindowStationObjectType = NULL;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ExpInitializeWorkerThreads)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* DEFINES *******************************************************************/
|
/* DEFINES *******************************************************************/
|
||||||
|
|
||||||
#define NUMBER_OF_WORKER_THREADS (5)
|
#define NUMBER_OF_WORKER_THREADS (5)
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, FsRtlpInitFileLockingImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NOTE:
|
NOTE:
|
||||||
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
//#define NDEBUG
|
//#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, FsRtlpInitNotifyImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
PAGED_LOOKASIDE_LIST NotifyEntryLookaside;
|
PAGED_LOOKASIDE_LIST NotifyEntryLookaside;
|
||||||
|
|
||||||
|
@ -61,7 +65,7 @@ FsRtlpInitNotifyImplementation(VOID)
|
||||||
|
|
||||||
|
|
||||||
static
|
static
|
||||||
inline
|
__inline
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
FsRtlpIsUnicodePath(
|
FsRtlpIsUnicodePath(
|
||||||
PSTRING Path
|
PSTRING Path
|
||||||
|
@ -593,7 +597,7 @@ FsRtlpGetNextIrp(PNOTIFY_ENTRY NotifyEntry)
|
||||||
|
|
||||||
|
|
||||||
static
|
static
|
||||||
inline
|
__inline
|
||||||
VOID
|
VOID
|
||||||
FsRtlpCopyName(
|
FsRtlpCopyName(
|
||||||
PFILE_NOTIFY_INFORMATION CurrentEntry,
|
PFILE_NOTIFY_INFORMATION CurrentEntry,
|
||||||
|
|
|
@ -21,9 +21,14 @@
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
BOOLEAN STDCALL MmIsFileAPagingFile(PFILE_OBJECT FileObject);
|
BOOLEAN STDCALL MmIsFileAPagingFile(PFILE_OBJECT FileObject);
|
||||||
|
VOID STDCALL INIT_FUNCTION RtlpInitializeResources(VOID);
|
||||||
static ULONG FsRtlpAllocatedResources = 0;
|
static ULONG FsRtlpAllocatedResources = 0;
|
||||||
static PERESOURCE FsRtlpResources;
|
static PERESOURCE FsRtlpResources;
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, RtlpInitializeResources)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS**********************************************************/
|
/* PRIVATE FUNCTIONS**********************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, InbvEnableBootDriver)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,38 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
static NTSTATUS
|
||||||
|
STDCALL INIT_FUNCTION
|
||||||
|
DiskQueryRoutine(PWSTR ValueName,
|
||||||
|
ULONG ValueType,
|
||||||
|
PVOID ValueData,
|
||||||
|
ULONG ValueLength,
|
||||||
|
PVOID Context,
|
||||||
|
PVOID EntryContext);
|
||||||
|
|
||||||
|
static VOID INIT_FUNCTION
|
||||||
|
IopEnumerateBiosDisks(PLIST_ENTRY ListHead);
|
||||||
|
|
||||||
|
static VOID INIT_FUNCTION
|
||||||
|
IopEnumerateDisks(PLIST_ENTRY ListHead);
|
||||||
|
|
||||||
|
static NTSTATUS INIT_FUNCTION
|
||||||
|
IopAssignArcNamesToDisk(PDEVICE_OBJECT DeviceObject, ULONG RDisk, ULONG DiskNumber);
|
||||||
|
|
||||||
|
static NTSTATUS INIT_FUNCTION
|
||||||
|
IopCheckCdromDevices(PULONG DeviceNumber);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, DiskQueryRoutine)
|
||||||
|
#pragma alloc_text(INIT, IopEnumerateBiosDisks)
|
||||||
|
#pragma alloc_text(INIT, IopEnumerateDisks)
|
||||||
|
#pragma alloc_text(INIT, IopAssignArcNamesToDisk)
|
||||||
|
#pragma alloc_text(INIT, IoCreateArcNames)
|
||||||
|
#pragma alloc_text(INIT, IopCheckCdromDevices)
|
||||||
|
#pragma alloc_text(INIT, IoCreateSystemRootLink)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* MACROS *******************************************************************/
|
/* MACROS *******************************************************************/
|
||||||
|
|
||||||
#define FS_VOLUME_BUFFER_SIZE (MAX_PATH + sizeof(FILE_FS_VOLUME_INFORMATION))
|
#define FS_VOLUME_BUFFER_SIZE (MAX_PATH + sizeof(FILE_FS_VOLUME_INFORMATION))
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IopInitBootLog)
|
||||||
|
#pragma alloc_text(INIT, IopStartBootLog()
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,6 @@ extern LOADER_PARAMETER_BLOCK KeLoaderBlock;
|
||||||
extern ULONG KeTickCount;
|
extern ULONG KeTickCount;
|
||||||
extern BOOLEAN SetupMode;
|
extern BOOLEAN SetupMode;
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
LdrProcessModule(PVOID ModuleLoadBase,
|
|
||||||
PUNICODE_STRING ModuleName,
|
|
||||||
PLDR_DATA_TABLE_ENTRY *ModuleObject);
|
|
||||||
|
|
||||||
typedef struct _SERVICE_GROUP
|
typedef struct _SERVICE_GROUP
|
||||||
{
|
{
|
||||||
LIST_ENTRY GroupListEntry;
|
LIST_ENTRY GroupListEntry;
|
||||||
|
@ -80,6 +75,41 @@ POBJECT_TYPE IoDriverObjectType = NULL;
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
IopDeleteDriver(PVOID ObjectBody);
|
IopDeleteDriver(PVOID ObjectBody);
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
LdrProcessModule(PVOID ModuleLoadBase,
|
||||||
|
PUNICODE_STRING ModuleName,
|
||||||
|
PLDR_DATA_TABLE_ENTRY *ModuleObject);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
FASTCALL
|
||||||
|
INIT_FUNCTION
|
||||||
|
IopDisplayLoadingMessage(PVOID ServiceName,
|
||||||
|
BOOLEAN Unicode);
|
||||||
|
|
||||||
|
static VOID INIT_FUNCTION
|
||||||
|
MiFreeBootDriverMemory(PVOID StartAddress, ULONG Length);
|
||||||
|
|
||||||
|
NTSTATUS FASTCALL INIT_FUNCTION
|
||||||
|
IopInitializeBuiltinDriver(
|
||||||
|
PDEVICE_NODE ModuleDeviceNode,
|
||||||
|
PVOID ModuleLoadBase,
|
||||||
|
PCHAR FileName,
|
||||||
|
ULONG ModuleLength);
|
||||||
|
|
||||||
|
static INIT_FUNCTION NTSTATUS
|
||||||
|
IopLoadDriver(PSERVICE Service);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IopInitDriverImplementation)
|
||||||
|
#pragma alloc_text(INIT, IopDisplayLoadingMessage)
|
||||||
|
#pragma alloc_text(INIT, IoCreateDriverList)
|
||||||
|
#pragma alloc_text(INIT, IoDestroyDriverList)
|
||||||
|
#pragma alloc_text(INIT, MiFreeBootDriverMemory)
|
||||||
|
#pragma alloc_text(INIT, IopInitializeBuiltinDriver)
|
||||||
|
#pragma alloc_text(INIT, IopLoadDriver)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS **********************************************************/
|
/* PRIVATE FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -1153,7 +1183,7 @@ IoDestroyDriverList(VOID)
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID STATIC INIT_FUNCTION
|
static VOID INIT_FUNCTION
|
||||||
MiFreeBootDriverMemory(PVOID StartAddress, ULONG Length)
|
MiFreeBootDriverMemory(PVOID StartAddress, ULONG Length)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IoInitFileSystemImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* TYPES *******************************************************************/
|
/* TYPES *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,18 @@ extern POBJECT_TYPE IoAdapterObjectType;
|
||||||
NPAGED_LOOKASIDE_LIST IoLargeIrpLookaside;
|
NPAGED_LOOKASIDE_LIST IoLargeIrpLookaside;
|
||||||
NPAGED_LOOKASIDE_LIST IoSmallIrpLookaside;
|
NPAGED_LOOKASIDE_LIST IoSmallIrpLookaside;
|
||||||
|
|
||||||
|
VOID INIT_FUNCTION IopInitLookasideLists(VOID);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IoInitCancelHandling)
|
||||||
|
#pragma alloc_text(INIT, IoInitShutdownNotification)
|
||||||
|
#pragma alloc_text(INIT, IopInitLookasideLists)
|
||||||
|
#pragma alloc_text(INIT, IoInit)
|
||||||
|
#pragma alloc_text(INIT, IoInit2)
|
||||||
|
#pragma alloc_text(INIT, IoInit3)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* INIT FUNCTIONS ************************************************************/
|
/* INIT FUNCTIONS ************************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IopInitPlugPlayEvents)
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _PNP_EVENT_ENTRY
|
typedef struct _PNP_EVENT_ENTRY
|
||||||
{
|
{
|
||||||
|
|
|
@ -97,6 +97,15 @@ ULONG crc32Table[256] =
|
||||||
0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D,
|
0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static NTSTATUS INIT_FUNCTION
|
||||||
|
IopSetRootDeviceInstanceData(PDEVICE_NODE DeviceNode);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IopSetRootDeviceInstanceData)
|
||||||
|
#pragma alloc_text(INIT, PnpInit)
|
||||||
|
#pragma alloc_text(INIT, PnpInit2)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IopInitPnpNotificationImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES *******************************************************************/
|
/* TYPES *******************************************************************/
|
||||||
|
|
||||||
typedef struct _PNP_NOTIFY_ENTRY
|
typedef struct _PNP_NOTIFY_ENTRY
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, IoInitVpbImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
static KSPIN_LOCK IoVpbLock;
|
static KSPIN_LOCK IoVpbLock;
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KdInitSystem)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Make bochs debug output in the very early boot phase available */
|
/* Make bochs debug output in the very early boot phase available */
|
||||||
//#define AUTO_ENABLE_BOCHS
|
//#define AUTO_ENABLE_BOCHS
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KiInitializeBugCheck)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
static LIST_ENTRY BugcheckCallbackListHead = {NULL,NULL};
|
static LIST_ENTRY BugcheckCallbackListHead = {NULL,NULL};
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KiInitializeSystemClock)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS ****************************************************************/
|
/* GLOBALS ****************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KeFindConfigurationEntry)
|
||||||
|
#pragma alloc_text(INIT, KeFindConfigurationNextEntry)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -21,6 +21,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KeInitDpc)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES *******************************************************************/
|
/* TYPES *******************************************************************/
|
||||||
|
|
||||||
#define MAX_QUANTUM 0x7F
|
#define MAX_QUANTUM 0x7F
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, KeInitExceptions)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXMES:
|
* FIXMES:
|
||||||
* - Put back VEH.
|
* - Put back VEH.
|
||||||
|
|
|
@ -29,9 +29,20 @@ ULONG KiFastSystemCallDisable = 1;
|
||||||
extern PVOID Ki386InitialStackArray[MAXIMUM_PROCESSORS];
|
extern PVOID Ki386InitialStackArray[MAXIMUM_PROCESSORS];
|
||||||
extern ULONG IdleProcessorMask;
|
extern ULONG IdleProcessorMask;
|
||||||
|
|
||||||
|
static VOID INIT_FUNCTION Ki386GetCpuId(VOID);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, Ki386GetCpuId)
|
||||||
|
#pragma alloc_text(INIT, KeCreateApplicationProcessorIdleThread)
|
||||||
|
#pragma alloc_text(INIT, KePrepareForApplicationProcessorInit)
|
||||||
|
#pragma alloc_text(INIT, KeInit1)
|
||||||
|
#pragma alloc_text(INIT, KeInit2)
|
||||||
|
#pragma alloc_text(INIT, Ki386SetProcessorFeatures)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
VOID INIT_FUNCTION STATIC
|
static VOID INIT_FUNCTION
|
||||||
Ki386GetCpuId(VOID)
|
Ki386GetCpuId(VOID)
|
||||||
{
|
{
|
||||||
ULONG OrigFlags, Flags, FinalFlags;
|
ULONG OrigFlags, Flags, FinalFlags;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, Ki386BootInitializeTSS)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
typedef struct _KTSSNOIOPM
|
typedef struct _KTSSNOIOPM
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, NtEarlyInitVdm)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
static UCHAR OrigIVT[1024];
|
static UCHAR OrigIVT[1024];
|
||||||
|
|
|
@ -64,6 +64,12 @@ PLOADER_MODULE CachedModules[MaximumCachedModuleType];
|
||||||
extern unsigned int _image_base__;
|
extern unsigned int _image_base__;
|
||||||
ULONG_PTR KERNEL_BASE = (ULONG_PTR)&_image_base__;
|
ULONG_PTR KERNEL_BASE = (ULONG_PTR)&_image_base__;
|
||||||
|
|
||||||
|
VOID INIT_FUNCTION _main(ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, _main)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PsInitialiseW32Call)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
#if ALEX_CB_REWRITE
|
#if ALEX_CB_REWRITE
|
||||||
|
|
|
@ -34,6 +34,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, LdrInit1)
|
||||||
|
#pragma alloc_text(INIT, LdrInitModuleManagement)
|
||||||
|
#pragma alloc_text(INIT, LdrSafePEProcessModule)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
LIST_ENTRY ModuleListHead;
|
LIST_ENTRY ModuleListHead;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, LpcpInitSystem)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializeKernelAddressSpace)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
STATIC MADDRESS_SPACE KernelAddressSpace;
|
STATIC MADDRESS_SPACE KernelAddressSpace;
|
||||||
|
|
|
@ -14,6 +14,13 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializeBalancer)
|
||||||
|
#pragma alloc_text(INIT, MmInitializeMemoryConsumer)
|
||||||
|
#pragma alloc_text(INIT, MiInitBalancerThread)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES ********************************************************************/
|
/* TYPES ********************************************************************/
|
||||||
typedef struct _MM_ALLOCATION_REQUEST
|
typedef struct _MM_ALLOCATION_REQUEST
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializePageList)
|
||||||
|
#pragma alloc_text(INIT, MmInitZeroPageThread)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES *******************************************************************/
|
/* TYPES *******************************************************************/
|
||||||
|
|
||||||
#define MM_PHYSICAL_PAGE_FREE (0x1)
|
#define MM_PHYSICAL_PAGE_FREE (0x1)
|
||||||
|
|
|
@ -14,6 +14,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitGlobalKernelPageDirectory)
|
||||||
|
#pragma alloc_text(INIT, MiInitPageDirectoryMap)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *****************************************************************/
|
/* GLOBALS *****************************************************************/
|
||||||
|
|
||||||
#define PA_BIT_PRESENT (0)
|
#define PA_BIT_PRESENT (0)
|
||||||
|
|
|
@ -47,6 +47,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitMemoryAreas)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* #define VALIDATE_MEMORY_AREAS */
|
/* #define VALIDATE_MEMORY_AREAS */
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializeMdlImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
#define TAG_MDL TAG('M', 'D', 'L', ' ')
|
#define TAG_MDL TAG('M', 'D', 'L', ' ')
|
||||||
|
|
|
@ -39,6 +39,15 @@ ULONG MiNonPagedPoolLength;
|
||||||
extern ULONG init_stack;
|
extern ULONG init_stack;
|
||||||
extern ULONG init_stack_top;
|
extern ULONG init_stack_top;
|
||||||
|
|
||||||
|
VOID INIT_FUNCTION NTAPI MmInitVirtualMemory(ULONG_PTR LastKernelAddress, ULONG KernelLength);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitVirtualMemory)
|
||||||
|
#pragma alloc_text(INIT, MmInit1)
|
||||||
|
#pragma alloc_text(INIT, MmInit2)
|
||||||
|
#pragma alloc_text(INIT, MmInit3)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MiInitializeNonPagedPool)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_VALIDATE_POOL
|
#ifdef ENABLE_VALIDATE_POOL
|
||||||
#define VALIDATE_POOL validate_kernel_pool()
|
#define VALIDATE_POOL validate_kernel_pool()
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -32,6 +32,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitPagingFile)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES *********************************************************************/
|
/* TYPES *********************************************************************/
|
||||||
|
|
||||||
typedef struct _PAGINGFILE
|
typedef struct _PAGINGFILE
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializePageOp)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
#define PAGEOP_HASH_TABLE_SIZE (32)
|
#define PAGEOP_HASH_TABLE_SIZE (32)
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
#endif//PPOOL_UMODE_TEST
|
#endif//PPOOL_UMODE_TEST
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializePagedPool)
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef ASSERT
|
#undef ASSERT
|
||||||
#define ASSERT(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
|
#define ASSERT(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ MmCreatePeb(PEPROCESS Process)
|
||||||
/* Allocate the PEB */
|
/* Allocate the PEB */
|
||||||
Peb = MiCreatePebOrTeb(Process,
|
Peb = MiCreatePebOrTeb(Process,
|
||||||
(PVOID)((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS + 1));
|
(PVOID)((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS + 1));
|
||||||
ASSERT(Peb == (PVOID)0x7FFDF000)
|
ASSERT(Peb == (PVOID)0x7FFDF000);
|
||||||
|
|
||||||
/* Map NLS Tables */
|
/* Map NLS Tables */
|
||||||
DPRINT("Mapping NLS\n");
|
DPRINT("Mapping NLS\n");
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmInitializeRmapList)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* TYPES ********************************************************************/
|
/* TYPES ********************************************************************/
|
||||||
|
|
||||||
typedef struct _MM_RMAP_ENTRY
|
typedef struct _MM_RMAP_ENTRY
|
||||||
|
|
|
@ -49,9 +49,14 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
#include <reactos/exeformat.h>
|
#include <reactos/exeformat.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, MmCreatePhysicalMemorySection)
|
||||||
|
#pragma alloc_text(INIT, MmInitSectionImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* TYPES *********************************************************************/
|
/* TYPES *********************************************************************/
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ObInit)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern ULONG NtGlobalFlag;
|
extern ULONG NtGlobalFlag;
|
||||||
|
|
||||||
/* GLOBALS ****************************************************************/
|
/* GLOBALS ****************************************************************/
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, ObInitSymbolicLinkImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PoInit)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct _REQUEST_POWER_ITEM
|
typedef struct _REQUEST_POWER_ITEM
|
||||||
{
|
{
|
||||||
PREQUEST_POWER_COMPLETE CompletionRoutine;
|
PREQUEST_POWER_COMPLETE CompletionRoutine;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PsInitIdleThread)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
extern PEPROCESS PsIdleProcess;
|
extern PEPROCESS PsIdleProcess;
|
||||||
|
|
|
@ -16,6 +16,12 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PsInitJobManagment)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE PsJobType = NULL;
|
POBJECT_TYPE PsJobType = NULL;
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PiInitDefaultLocale)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -193,9 +193,10 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
||||||
PHYSICAL_ADDRESS DirectoryTableBase;
|
PHYSICAL_ADDRESS DirectoryTableBase;
|
||||||
KAFFINITY Affinity;
|
KAFFINITY Affinity;
|
||||||
HANDLE_TABLE_ENTRY CidEntry;
|
HANDLE_TABLE_ENTRY CidEntry;
|
||||||
DirectoryTableBase.QuadPart = (ULONGLONG)0;
|
|
||||||
BOOLEAN ProcessCreated = FALSE;
|
BOOLEAN ProcessCreated = FALSE;
|
||||||
|
|
||||||
|
DirectoryTableBase.QuadPart = (ULONGLONG)0;
|
||||||
|
|
||||||
DPRINT("PspCreateProcess(ObjectAttributes %x)\n", ObjectAttributes);
|
DPRINT("PspCreateProcess(ObjectAttributes %x)\n", ObjectAttributes);
|
||||||
|
|
||||||
/* Reference the Parent if there is one */
|
/* Reference the Parent if there is one */
|
||||||
|
|
|
@ -46,6 +46,17 @@ PVOID PspSystemDllSection = NULL;
|
||||||
PVOID PspSystemDllEntryPoint = NULL;
|
PVOID PspSystemDllEntryPoint = NULL;
|
||||||
PHANDLE_TABLE PspCidTable = NULL;
|
PHANDLE_TABLE PspCidTable = NULL;
|
||||||
VOID STDCALL PspKillMostProcesses();
|
VOID STDCALL PspKillMostProcesses();
|
||||||
|
VOID INIT_FUNCTION NTAPI PsInitClientIDManagment(VOID);
|
||||||
|
NTSTATUS STDCALL INIT_FUNCTION PspLookupKernelUserEntryPoints(VOID);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, PiInitProcessManager)
|
||||||
|
#pragma alloc_text(INIT, PsInitClientIDManagment)
|
||||||
|
#pragma alloc_text(INIT, PsInitThreadManagment)
|
||||||
|
#pragma alloc_text(INIT, PsInitProcessManagment)
|
||||||
|
#pragma alloc_text(INIT, PspLookupKernelUserEntryPoints)
|
||||||
|
#pragma alloc_text(INIT, PsLocateSystemDll)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,15 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, RtlpInitNls)
|
||||||
|
#pragma alloc_text(INIT, RtlpImportAnsiCodePage)
|
||||||
|
#pragma alloc_text(INIT, RtlpImportOemCodePage)
|
||||||
|
#pragma alloc_text(INIT, RtlpImportUnicodeCasemap)
|
||||||
|
#pragma alloc_text(INIT, RtlpCreateInitialNlsTables)
|
||||||
|
#pragma alloc_text(INIT, RtlpCreateNlsSection)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitDACLs)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
PACL SePublicDefaultDacl = NULL;
|
PACL SePublicDefaultDacl = NULL;
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitLuid)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
static LARGE_INTEGER LuidIncrement;
|
static LARGE_INTEGER LuidIncrement;
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitPrivileges)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitSDs)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
PSECURITY_DESCRIPTOR SePublicDefaultSd = NULL;
|
PSECURITY_DESCRIPTOR SePublicDefaultSd = NULL;
|
||||||
|
|
|
@ -26,6 +26,11 @@ static ERESOURCE SepSubjectContextLock;
|
||||||
|
|
||||||
static BOOLEAN SepInitExports(VOID);
|
static BOOLEAN SepInitExports(VOID);
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SeInit1)
|
||||||
|
#pragma alloc_text(INIT, SeInit2)
|
||||||
|
#pragma alloc_text(INIT, SepInitExports)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitSecurityIDs)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
#if defined (ALLOC_PRAGMA)
|
||||||
|
#pragma alloc_text(INIT, SepInitializeTokenImplementation)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
POBJECT_TYPE SepTokenObjectType = NULL;
|
POBJECT_TYPE SepTokenObjectType = NULL;
|
||||||
|
|
Loading…
Reference in a new issue