- Support INIT section pragmas for msvc. Patch by Brezenbak.

svn path=/trunk/; revision=19732
This commit is contained in:
Alex Ionescu 2005-11-28 23:25:31 +00:00
parent 678fb5ae5f
commit caaa37c1ac
72 changed files with 429 additions and 12 deletions

View file

@ -36,6 +36,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, CcInitView)
#endif
/* GLOBALS *******************************************************************/
/*

View file

@ -16,6 +16,10 @@
#include "cm.h"
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, CmImportHardwareHive)
#endif
/* GLOBALS ******************************************************************/
static BOOLEAN CmiHardwareHiveImported = FALSE;

View file

@ -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;

View file

@ -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 */

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -15,6 +15,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ExpInitLookasideLists)
#endif
/* GLOBALS *******************************************************************/
LIST_ENTRY ExpNonPagedLookasideListHead;

View file

@ -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

View file

@ -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;

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ExpInitializeSemaphoreImplementation()
#endif
/* GLOBALS ******************************************************************/
POBJECT_TYPE ExSemaphoreObjectType;

View file

@ -17,6 +17,10 @@
#define TICKSPERMINUTE 600000000
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ExpInitTimeZoneInfo)
#endif
/* GLOBALS ******************************************************************/
/* Note: Bias[minutes] = UTC - local time */

View file

@ -14,6 +14,11 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ExpInitializeTimerImplementation)
#endif
/* TYPES ********************************************************************/
/* Executive Timer Object */

View file

@ -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 ****************************************************************/

View file

@ -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;

View file

@ -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)

View file

@ -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

View file

@ -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,

View file

@ -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

View file

@ -15,6 +15,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, InbvEnableBootDriver)
#endif
/* GLOBALS *******************************************************************/

View file

@ -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))

View file

@ -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 ******************************************************************/

View file

@ -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;

View file

@ -14,6 +14,9 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, IoInitFileSystemImplementation)
#endif
/* TYPES *******************************************************************/

View file

@ -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

View file

@ -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
{

View file

@ -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 *****************************************************************/

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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};

View file

@ -20,6 +20,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, KiInitializeSystemClock)
#endif
/* GLOBALS ****************************************************************/
/*

View file

@ -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
*/

View file

@ -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

View file

@ -15,6 +15,11 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, KeInitExceptions)
#endif
/*
* FIXMES:
* - Put back VEH.

View file

@ -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;

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, Ki386BootInitializeTSS)
#endif
/* GLOBALS *******************************************************************/
typedef struct _KTSSNOIOPM

View file

@ -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];

View file

@ -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 ****************************************************************/
/*

View file

@ -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

View file

@ -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;

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, LpcpInitSystem)
#endif
/* GLOBALS *******************************************************************/

View file

@ -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;

View file

@ -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
{

View file

@ -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)

View file

@ -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)

View file

@ -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 *****************************************************************/

View file

@ -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', ' ')

View file

@ -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 ****************************************************************/
/*

View file

@ -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

View file

@ -32,6 +32,11 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, MmInitPagingFile)
#endif
/* TYPES *********************************************************************/
typedef struct _PAGINGFILE

View file

@ -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)

View file

@ -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); }

View file

@ -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");

View file

@ -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

View file

@ -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

View file

@ -14,6 +14,11 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ObInit)
#endif
extern ULONG NtGlobalFlag;
/* GLOBALS ****************************************************************/

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, ObInitSymbolicLinkImplementation)
#endif
/* GLOBALS ******************************************************************/

View file

@ -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;

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, PsInitIdleThread)
#endif
/* GLOBALS *******************************************************************/
extern PEPROCESS PsIdleProcess;

View file

@ -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;

View file

@ -15,6 +15,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, PiInitDefaultLocale)
#endif
/* GLOBALS *******************************************************************/

View file

@ -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 */

View file

@ -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 ***************************************************************/

View file

@ -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 *******************************************************************/

View file

@ -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;

View file

@ -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;

View file

@ -14,6 +14,10 @@
#define NDEBUG
#include <internal/debug.h>
#if defined (ALLOC_PRAGMA)
#pragma alloc_text(INIT, SepInitPrivileges)
#endif
/* GLOBALS *******************************************************************/

View file

@ -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;

View file

@ -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 ****************************************************************/

View file

@ -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};

View file

@ -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;