mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, CcInitView)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
|
||||
#include "cm.h"
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, CmImportHardwareHive)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
static BOOLEAN CmiHardwareHiveImported = FALSE;
|
||||
|
|
|
@ -16,6 +16,13 @@
|
|||
|
||||
#include "cm.h"
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, CmInitHives)
|
||||
#pragma alloc_text(INIT, CmInitializeRegistry)
|
||||
#pragma alloc_text(INIT, CmInit2)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
POBJECT_TYPE CmiKeyType = NULL;
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeCallbacks)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES ********************************************************************/
|
||||
|
||||
/* Mapping for Callback Object */
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeEventImplementation)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
POBJECT_TYPE ExEventObjectType = NULL;
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeEventPairImplementation)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
POBJECT_TYPE ExEventPairObjectType = NULL;
|
||||
|
|
|
@ -32,6 +32,18 @@ BOOLEAN SetupMode = TRUE;
|
|||
|
||||
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 ****************************************************************/
|
||||
|
||||
static
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitLookasideLists)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
LIST_ENTRY ExpNonPagedLookasideListHead;
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeMutantImplementation)
|
||||
#endif
|
||||
|
||||
#ifndef MUTANT_INCREMENT
|
||||
#define MUTANT_INCREMENT 1
|
||||
#endif
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeProfileImplementation)
|
||||
#endif
|
||||
|
||||
/* FIXME: NDK This structure is a *GUESS* -- Alex */
|
||||
typedef struct _EPROFILE {
|
||||
PEPROCESS Process;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation()
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
POBJECT_TYPE ExSemaphoreObjectType;
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
|
||||
#define TICKSPERMINUTE 600000000
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitTimeZoneInfo)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
/* Note: Bias[minutes] = UTC - local time */
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeTimerImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES ********************************************************************/
|
||||
|
||||
/* Executive Timer Object */
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
#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)
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitUuids)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ****************************************************************/
|
||||
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpWin32kInit)
|
||||
#endif
|
||||
|
||||
/* DATA **********************************************************************/
|
||||
|
||||
POBJECT_TYPE ExWindowStationObjectType = NULL;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ExpInitializeWorkerThreads)
|
||||
#endif
|
||||
|
||||
/* DEFINES *******************************************************************/
|
||||
|
||||
#define NUMBER_OF_WORKER_THREADS (5)
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, FsRtlpInitFileLockingImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
NOTE:
|
||||
I'm not using resource syncronization here, since FsRtlFastCheckLockForRead/Write
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
//#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, FsRtlpInitNotifyImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
PAGED_LOOKASIDE_LIST NotifyEntryLookaside;
|
||||
|
||||
|
@ -61,7 +65,7 @@ FsRtlpInitNotifyImplementation(VOID)
|
|||
|
||||
|
||||
static
|
||||
inline
|
||||
__inline
|
||||
BOOLEAN
|
||||
FsRtlpIsUnicodePath(
|
||||
PSTRING Path
|
||||
|
@ -593,7 +597,7 @@ FsRtlpGetNextIrp(PNOTIFY_ENTRY NotifyEntry)
|
|||
|
||||
|
||||
static
|
||||
inline
|
||||
__inline
|
||||
VOID
|
||||
FsRtlpCopyName(
|
||||
PFILE_NOTIFY_INFORMATION CurrentEntry,
|
||||
|
|
|
@ -21,9 +21,14 @@
|
|||
/* GLOBALS *******************************************************************/
|
||||
|
||||
BOOLEAN STDCALL MmIsFileAPagingFile(PFILE_OBJECT FileObject);
|
||||
VOID STDCALL INIT_FUNCTION RtlpInitializeResources(VOID);
|
||||
static ULONG FsRtlpAllocatedResources = 0;
|
||||
static PERESOURCE FsRtlpResources;
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, RtlpInitializeResources)
|
||||
#endif
|
||||
|
||||
/* PRIVATE FUNCTIONS**********************************************************/
|
||||
|
||||
VOID
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, InbvEnableBootDriver)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
|
|
@ -15,6 +15,38 @@
|
|||
#define NDEBUG
|
||||
#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 *******************************************************************/
|
||||
|
||||
#define FS_VOLUME_BUFFER_SIZE (MAX_PATH + sizeof(FILE_FS_VOLUME_INFORMATION))
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IopInitBootLog)
|
||||
#pragma alloc_text(INIT, IopStartBootLog()
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@ extern LOADER_PARAMETER_BLOCK KeLoaderBlock;
|
|||
extern ULONG KeTickCount;
|
||||
extern BOOLEAN SetupMode;
|
||||
|
||||
NTSTATUS
|
||||
LdrProcessModule(PVOID ModuleLoadBase,
|
||||
PUNICODE_STRING ModuleName,
|
||||
PLDR_DATA_TABLE_ENTRY *ModuleObject);
|
||||
|
||||
typedef struct _SERVICE_GROUP
|
||||
{
|
||||
LIST_ENTRY GroupListEntry;
|
||||
|
@ -80,6 +75,41 @@ POBJECT_TYPE IoDriverObjectType = NULL;
|
|||
VOID STDCALL
|
||||
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 **********************************************************/
|
||||
|
||||
VOID
|
||||
|
@ -1153,7 +1183,7 @@ IoDestroyDriverList(VOID)
|
|||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
VOID STATIC INIT_FUNCTION
|
||||
static VOID INIT_FUNCTION
|
||||
MiFreeBootDriverMemory(PVOID StartAddress, ULONG Length)
|
||||
{
|
||||
ULONG i;
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IoInitFileSystemImplementation)
|
||||
#endif
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
|
|
|
@ -40,6 +40,18 @@ extern POBJECT_TYPE IoAdapterObjectType;
|
|||
NPAGED_LOOKASIDE_LIST IoLargeIrpLookaside;
|
||||
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 ************************************************************/
|
||||
|
||||
VOID
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IopInitPlugPlayEvents)
|
||||
#endif
|
||||
|
||||
typedef struct _PNP_EVENT_ENTRY
|
||||
{
|
||||
|
|
|
@ -97,6 +97,15 @@ ULONG crc32Table[256] =
|
|||
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 *****************************************************************/
|
||||
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IopInitPnpNotificationImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
typedef struct _PNP_NOTIFY_ENTRY
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, IoInitVpbImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
static KSPIN_LOCK IoVpbLock;
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
#define NDEBUG
|
||||
#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 */
|
||||
//#define AUTO_ENABLE_BOCHS
|
||||
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, KiInitializeBugCheck)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
static LIST_ENTRY BugcheckCallbackListHead = {NULL,NULL};
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, KiInitializeSystemClock)
|
||||
#endif
|
||||
|
||||
/* GLOBALS ****************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, KeFindConfigurationEntry)
|
||||
#pragma alloc_text(INIT, KeFindConfigurationNextEntry)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, KeInitDpc)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
#define MAX_QUANTUM 0x7F
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, KeInitExceptions)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* FIXMES:
|
||||
* - Put back VEH.
|
||||
|
|
|
@ -29,9 +29,20 @@ ULONG KiFastSystemCallDisable = 1;
|
|||
extern PVOID Ki386InitialStackArray[MAXIMUM_PROCESSORS];
|
||||
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 *****************************************************************/
|
||||
|
||||
VOID INIT_FUNCTION STATIC
|
||||
static VOID INIT_FUNCTION
|
||||
Ki386GetCpuId(VOID)
|
||||
{
|
||||
ULONG OrigFlags, Flags, FinalFlags;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, Ki386BootInitializeTSS)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
typedef struct _KTSSNOIOPM
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, NtEarlyInitVdm)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
static UCHAR OrigIVT[1024];
|
||||
|
|
|
@ -64,6 +64,12 @@ PLOADER_MODULE CachedModules[MaximumCachedModuleType];
|
|||
extern unsigned int _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 ****************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PsInitialiseW32Call)
|
||||
#endif
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
#if ALEX_CB_REWRITE
|
||||
|
|
|
@ -34,6 +34,12 @@
|
|||
#define NDEBUG
|
||||
#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 *******************************************************************/
|
||||
|
||||
LIST_ENTRY ModuleListHead;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, LpcpInitSystem)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializeKernelAddressSpace)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
STATIC MADDRESS_SPACE KernelAddressSpace;
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
#define NDEBUG
|
||||
#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 ********************************************************************/
|
||||
typedef struct _MM_ALLOCATION_REQUEST
|
||||
{
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializePageList)
|
||||
#pragma alloc_text(INIT, MmInitZeroPageThread)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES *******************************************************************/
|
||||
|
||||
#define MM_PHYSICAL_PAGE_FREE (0x1)
|
||||
|
|
|
@ -14,6 +14,12 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitGlobalKernelPageDirectory)
|
||||
#pragma alloc_text(INIT, MiInitPageDirectoryMap)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *****************************************************************/
|
||||
|
||||
#define PA_BIT_PRESENT (0)
|
||||
|
|
|
@ -47,6 +47,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitMemoryAreas)
|
||||
#endif
|
||||
|
||||
/* #define VALIDATE_MEMORY_AREAS */
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializeMdlImplementation)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
#define TAG_MDL TAG('M', 'D', 'L', ' ')
|
||||
|
|
|
@ -39,6 +39,15 @@ ULONG MiNonPagedPoolLength;
|
|||
extern ULONG init_stack;
|
||||
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 ****************************************************************/
|
||||
|
||||
/*
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MiInitializeNonPagedPool)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_VALIDATE_POOL
|
||||
#define VALIDATE_POOL validate_kernel_pool()
|
||||
#else
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitPagingFile)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _PAGINGFILE
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializePageOp)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
#define PAGEOP_HASH_TABLE_SIZE (32)
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
#include <internal/debug.h>
|
||||
#endif//PPOOL_UMODE_TEST
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializePagedPool)
|
||||
#endif
|
||||
|
||||
#undef ASSERT
|
||||
#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 */
|
||||
Peb = MiCreatePebOrTeb(Process,
|
||||
(PVOID)((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS + 1));
|
||||
ASSERT(Peb == (PVOID)0x7FFDF000)
|
||||
ASSERT(Peb == (PVOID)0x7FFDF000);
|
||||
|
||||
/* Map NLS Tables */
|
||||
DPRINT("Mapping NLS\n");
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmInitializeRmapList)
|
||||
#endif
|
||||
|
||||
/* TYPES ********************************************************************/
|
||||
|
||||
typedef struct _MM_RMAP_ENTRY
|
||||
|
|
|
@ -49,9 +49,14 @@
|
|||
#include <ntoskrnl.h>
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#include <reactos/exeformat.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, MmCreatePhysicalMemorySection)
|
||||
#pragma alloc_text(INIT, MmInitSectionImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ObInit)
|
||||
#endif
|
||||
|
||||
|
||||
extern ULONG NtGlobalFlag;
|
||||
|
||||
/* GLOBALS ****************************************************************/
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ObInitSymbolicLinkImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PoInit)
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _REQUEST_POWER_ITEM
|
||||
{
|
||||
PREQUEST_POWER_COMPLETE CompletionRoutine;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PsInitIdleThread)
|
||||
#endif
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
extern PEPROCESS PsIdleProcess;
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PsInitJobManagment)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
POBJECT_TYPE PsJobType = NULL;
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, PiInitDefaultLocale)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
|
|
@ -193,9 +193,10 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
|||
PHYSICAL_ADDRESS DirectoryTableBase;
|
||||
KAFFINITY Affinity;
|
||||
HANDLE_TABLE_ENTRY CidEntry;
|
||||
DirectoryTableBase.QuadPart = (ULONGLONG)0;
|
||||
BOOLEAN ProcessCreated = FALSE;
|
||||
|
||||
DirectoryTableBase.QuadPart = (ULONGLONG)0;
|
||||
|
||||
DPRINT("PspCreateProcess(ObjectAttributes %x)\n", ObjectAttributes);
|
||||
|
||||
/* Reference the Parent if there is one */
|
||||
|
|
|
@ -46,6 +46,17 @@ PVOID PspSystemDllSection = NULL;
|
|||
PVOID PspSystemDllEntryPoint = NULL;
|
||||
PHANDLE_TABLE PspCidTable = NULL;
|
||||
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 ***************************************************************/
|
||||
|
||||
|
|
|
@ -11,6 +11,15 @@
|
|||
#define NDEBUG
|
||||
#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 *******************************************************************/
|
||||
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitDACLs)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
PACL SePublicDefaultDacl = NULL;
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitLuid)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
static LARGE_INTEGER LuidIncrement;
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitPrivileges)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
#include <ntoskrnl.h>
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitSDs)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
PSECURITY_DESCRIPTOR SePublicDefaultSd = NULL;
|
||||
|
|
|
@ -26,6 +26,11 @@ static ERESOURCE SepSubjectContextLock;
|
|||
|
||||
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 ****************************************************************/
|
||||
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitSecurityIDs)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, SepInitializeTokenImplementation)
|
||||
#endif
|
||||
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
POBJECT_TYPE SepTokenObjectType = NULL;
|
||||
|
|
Loading…
Reference in a new issue