mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[NTOS]: Mark all initialization functions INIT_FUNCTION.
[NTOS]: This will save ~280KB of RAM once we dump INIT from RAM in a future patch. [NTOS]: Display current free RAM at certain checkpoints. svn path=/trunk/; revision=49445
This commit is contained in:
parent
ee45da75e0
commit
85e5b5be56
56 changed files with 191 additions and 18 deletions
|
@ -19,6 +19,7 @@ PFSN_PREFETCHER_GLOBALS CcPfGlobals;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CcPfInitializePrefetcher(VOID)
|
CcPfInitializePrefetcher(VOID)
|
||||||
{
|
{
|
||||||
/* Notify debugger */
|
/* Notify debugger */
|
||||||
|
@ -36,6 +37,7 @@ CcPfInitializePrefetcher(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CcInitializeCacheManager(VOID)
|
CcInitializeCacheManager(VOID)
|
||||||
{
|
{
|
||||||
CcInitView();
|
CcInitView();
|
||||||
|
|
|
@ -25,6 +25,7 @@ LIST_ENTRY CmpFreeDelayItemsListHead;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitCmPrivateAlloc(VOID)
|
CmpInitCmPrivateAlloc(VOID)
|
||||||
{
|
{
|
||||||
/* Make sure we didn't already do this */
|
/* Make sure we didn't already do this */
|
||||||
|
@ -39,6 +40,7 @@ CmpInitCmPrivateAlloc(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitCmPrivateDelayAlloc(VOID)
|
CmpInitCmPrivateDelayAlloc(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize the delay allocation list and lock */
|
/* Initialize the delay allocation list and lock */
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
HCELL_INDEX
|
HCELL_INDEX
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpFindControlSet(IN PHHIVE SystemHive,
|
CmpFindControlSet(IN PHHIVE SystemHive,
|
||||||
IN HCELL_INDEX RootCell,
|
IN HCELL_INDEX RootCell,
|
||||||
IN PUNICODE_STRING SelectKeyName,
|
IN PUNICODE_STRING SelectKeyName,
|
||||||
|
@ -126,6 +127,7 @@ CmpFindControlSet(IN PHHIVE SystemHive,
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpFindTagIndex(IN PHHIVE Hive,
|
CmpFindTagIndex(IN PHHIVE Hive,
|
||||||
IN HCELL_INDEX TagCell,
|
IN HCELL_INDEX TagCell,
|
||||||
IN HCELL_INDEX GroupOrderCell,
|
IN HCELL_INDEX GroupOrderCell,
|
||||||
|
@ -175,6 +177,7 @@ CmpFindTagIndex(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpAddDriverToList(IN PHHIVE Hive,
|
CmpAddDriverToList(IN PHHIVE Hive,
|
||||||
IN HCELL_INDEX DriverCell,
|
IN HCELL_INDEX DriverCell,
|
||||||
IN HCELL_INDEX GroupOrderCell,
|
IN HCELL_INDEX GroupOrderCell,
|
||||||
|
@ -341,6 +344,7 @@ CmpAddDriverToList(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpIsLoadType(IN PHHIVE Hive,
|
CmpIsLoadType(IN PHHIVE Hive,
|
||||||
IN HCELL_INDEX Cell,
|
IN HCELL_INDEX Cell,
|
||||||
IN SERVICE_LOAD_TYPE LoadType)
|
IN SERVICE_LOAD_TYPE LoadType)
|
||||||
|
@ -371,6 +375,7 @@ CmpIsLoadType(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpFindDrivers(IN PHHIVE Hive,
|
CmpFindDrivers(IN PHHIVE Hive,
|
||||||
IN HCELL_INDEX ControlSet,
|
IN HCELL_INDEX ControlSet,
|
||||||
IN SERVICE_LOAD_TYPE LoadType,
|
IN SERVICE_LOAD_TYPE LoadType,
|
||||||
|
@ -465,6 +470,7 @@ CmpFindDrivers(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpDoSort(IN PLIST_ENTRY DriverListHead,
|
CmpDoSort(IN PLIST_ENTRY DriverListHead,
|
||||||
IN PUNICODE_STRING OrderList)
|
IN PUNICODE_STRING OrderList)
|
||||||
{
|
{
|
||||||
|
@ -521,6 +527,7 @@ CmpDoSort(IN PLIST_ENTRY DriverListHead,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpSortDriverList(IN PHHIVE Hive,
|
CmpSortDriverList(IN PHHIVE Hive,
|
||||||
IN HCELL_INDEX ControlSet,
|
IN HCELL_INDEX ControlSet,
|
||||||
IN PLIST_ENTRY DriverListHead)
|
IN PLIST_ENTRY DriverListHead)
|
||||||
|
@ -569,6 +576,7 @@ CmpSortDriverList(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpOrderGroup(IN PBOOT_DRIVER_NODE StartNode,
|
CmpOrderGroup(IN PBOOT_DRIVER_NODE StartNode,
|
||||||
IN PBOOT_DRIVER_NODE EndNode)
|
IN PBOOT_DRIVER_NODE EndNode)
|
||||||
{
|
{
|
||||||
|
@ -631,6 +639,7 @@ CmpOrderGroup(IN PBOOT_DRIVER_NODE StartNode,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpResolveDriverDependencies(IN PLIST_ENTRY DriverListHead)
|
CmpResolveDriverDependencies(IN PLIST_ENTRY DriverListHead)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
IN HANDLE NodeHandle,
|
IN HANDLE NodeHandle,
|
||||||
OUT PHANDLE NewHandle,
|
OUT PHANDLE NewHandle,
|
||||||
|
@ -195,6 +196,7 @@ CmpInitializeRegistryNode(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
IN HANDLE ParentHandle,
|
IN HANDLE ParentHandle,
|
||||||
IN INTERFACE_TYPE InterfaceType,
|
IN INTERFACE_TYPE InterfaceType,
|
||||||
|
@ -311,6 +313,7 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -390,8 +393,3 @@ CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
NtClose(KeyHandle);
|
NtClose(KeyHandle);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
LANGID
|
LANGID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpConvertLangId(IN LPWSTR Name,
|
CmpConvertLangId(IN LPWSTR Name,
|
||||||
IN ULONG NameLength)
|
IN ULONG NameLength)
|
||||||
{
|
{
|
||||||
|
@ -68,6 +69,7 @@ CmpConvertLangId(IN LPWSTR Name,
|
||||||
|
|
||||||
HCELL_INDEX
|
HCELL_INDEX
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpWalkPath(IN PHHIVE SystemHive,
|
CmpWalkPath(IN PHHIVE SystemHive,
|
||||||
IN HCELL_INDEX ParentCell,
|
IN HCELL_INDEX ParentCell,
|
||||||
IN LPWSTR Path)
|
IN LPWSTR Path)
|
||||||
|
@ -98,6 +100,7 @@ CmpWalkPath(IN PHHIVE SystemHive,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmGetSystemControlValues(IN PVOID SystemHiveData,
|
CmGetSystemControlValues(IN PVOID SystemHiveData,
|
||||||
IN PCM_SYSTEM_CONTROL_VECTOR ControlVector)
|
IN PCM_SYSTEM_CONTROL_VECTOR ControlVector)
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,7 +65,7 @@ ULONG CmpTypeCount[MaximumType + 1];
|
||||||
|
|
||||||
HANDLE CmpRegistryRootHandle;
|
HANDLE CmpRegistryRootHandle;
|
||||||
|
|
||||||
UNICODE_STRING CmClassName[MaximumClass + 1] =
|
INIT_FUNCTION UNICODE_STRING CmClassName[MaximumClass + 1] =
|
||||||
{
|
{
|
||||||
RTL_CONSTANT_STRING(L"System"),
|
RTL_CONSTANT_STRING(L"System"),
|
||||||
RTL_CONSTANT_STRING(L"Processor"),
|
RTL_CONSTANT_STRING(L"Processor"),
|
||||||
|
@ -77,7 +77,7 @@ UNICODE_STRING CmClassName[MaximumClass + 1] =
|
||||||
RTL_CONSTANT_STRING(L"Undefined")
|
RTL_CONSTANT_STRING(L"Undefined")
|
||||||
};
|
};
|
||||||
|
|
||||||
UNICODE_STRING CmTypeName[MaximumType + 1] =
|
INIT_FUNCTION UNICODE_STRING CmTypeName[MaximumType + 1] =
|
||||||
{
|
{
|
||||||
RTL_CONSTANT_STRING(L"System"),
|
RTL_CONSTANT_STRING(L"System"),
|
||||||
RTL_CONSTANT_STRING(L"CentralProcessor"),
|
RTL_CONSTANT_STRING(L"CentralProcessor"),
|
||||||
|
@ -123,7 +123,7 @@ UNICODE_STRING CmTypeName[MaximumType + 1] =
|
||||||
RTL_CONSTANT_STRING(L"Undefined")
|
RTL_CONSTANT_STRING(L"Undefined")
|
||||||
};
|
};
|
||||||
|
|
||||||
CMP_MF_TYPE CmpMultifunctionTypes[] =
|
INIT_FUNCTION CMP_MF_TYPE CmpMultifunctionTypes[] =
|
||||||
{
|
{
|
||||||
{"ISA", Isa, 0},
|
{"ISA", Isa, 0},
|
||||||
{"MCA", MicroChannel, 0},
|
{"MCA", MicroChannel, 0},
|
||||||
|
@ -136,7 +136,7 @@ CMP_MF_TYPE CmpMultifunctionTypes[] =
|
||||||
{NULL, Internal, 0}
|
{NULL, Internal, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
|
INIT_FUNCTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
L"Session Manager",
|
L"Session Manager",
|
||||||
|
|
|
@ -185,6 +185,7 @@ CmpDelayCloseWorker(IN PVOID Context)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitializeDelayedCloseTable(VOID)
|
CmpInitializeDelayedCloseTable(VOID)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -259,6 +260,7 @@ CmpDelayDerefKCBWorker(IN PVOID Context)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitDelayDerefKCBEngine(VOID)
|
CmpInitDelayDerefKCBEngine(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize lock and list */
|
/* Initialize lock and list */
|
||||||
|
|
|
@ -34,6 +34,7 @@ typedef struct _REGISTRY_CALLBACK
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitCallback(VOID)
|
CmpInitCallback(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -22,6 +22,7 @@ PCM_NAME_HASH_TABLE_ENTRY CmpNameCacheTable;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitializeCache(VOID)
|
CmpInitializeCache(VOID)
|
||||||
{
|
{
|
||||||
ULONG Length, i;
|
ULONG Length, i;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
PSECURITY_DESCRIPTOR
|
PSECURITY_DESCRIPTOR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpHiveRootSecurityDescriptor(VOID)
|
CmpHiveRootSecurityDescriptor(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
|
@ -308,6 +308,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
CmpSetSystemValues(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
@ -361,6 +362,7 @@ Quickie:
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpCreateControlSet(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
CmpCreateControlSet(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
UNICODE_STRING ConfigName = RTL_CONSTANT_STRING(L"Control\\IDConfigDB");
|
UNICODE_STRING ConfigName = RTL_CONSTANT_STRING(L"Control\\IDConfigDB");
|
||||||
|
@ -689,6 +691,7 @@ CmpLinkHiveToMaster(IN PUNICODE_STRING LinkName,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PVOID HiveBase;
|
PVOID HiveBase;
|
||||||
|
@ -817,6 +820,7 @@ CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpCreateObjectTypes(VOID)
|
CmpCreateObjectTypes(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_TYPE_INITIALIZER ObjectTypeInitializer;
|
OBJECT_TYPE_INITIALIZER ObjectTypeInitializer;
|
||||||
|
@ -849,6 +853,7 @@ CmpCreateObjectTypes(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpCreateRootNode(IN PHHIVE Hive,
|
CmpCreateRootNode(IN PHHIVE Hive,
|
||||||
IN PCWSTR Name,
|
IN PCWSTR Name,
|
||||||
OUT PHCELL_INDEX Index)
|
OUT PHCELL_INDEX Index)
|
||||||
|
@ -909,6 +914,7 @@ CmpCreateRootNode(IN PHHIVE Hive,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpCreateRegistryRoot(VOID)
|
CmpCreateRegistryRoot(VOID)
|
||||||
{
|
{
|
||||||
UNICODE_STRING KeyName;
|
UNICODE_STRING KeyName;
|
||||||
|
@ -1366,6 +1372,7 @@ CmpInitializeHiveList(IN USHORT Flag)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmInitSystem1(VOID)
|
CmInitSystem1(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
@ -1577,6 +1584,7 @@ CmInitSystem1(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmpFreeDriverList(IN PHHIVE Hive,
|
CmpFreeDriverList(IN PHHIVE Hive,
|
||||||
IN PLIST_ENTRY DriverList)
|
IN PLIST_ENTRY DriverList)
|
||||||
{
|
{
|
||||||
|
@ -1625,6 +1633,7 @@ CmpFreeDriverList(IN PHHIVE Hive,
|
||||||
|
|
||||||
PUNICODE_STRING*
|
PUNICODE_STRING*
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
CmGetSystemDriverList(VOID)
|
CmGetSystemDriverList(VOID)
|
||||||
{
|
{
|
||||||
LIST_ENTRY DriverList;
|
LIST_ENTRY DriverList;
|
||||||
|
|
|
@ -23,6 +23,7 @@ EX_PUSH_LOCK HandleTableListLock;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitializeHandleTables(VOID)
|
ExpInitializeHandleTables(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize the list of handle tables and the lock */
|
/* Initialize the list of handle tables and the lock */
|
||||||
|
|
|
@ -69,6 +69,7 @@ HdlspEnableTerminal(
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
HeadlessInit(
|
HeadlessInit(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
||||||
)
|
)
|
||||||
|
|
|
@ -87,6 +87,7 @@ BOOLEAN ExpRealTimeIsUniversal;
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpCreateSystemRootLink(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
ExpCreateSystemRootLink(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
UNICODE_STRING LinkName;
|
UNICODE_STRING LinkName;
|
||||||
|
@ -198,6 +199,7 @@ ExpCreateSystemRootLink(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
LARGE_INTEGER SectionSize;
|
LARGE_INTEGER SectionSize;
|
||||||
|
@ -373,6 +375,7 @@ ExpInitNls(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpLoadInitialProcess(IN PINIT_BUFFER InitBuffer,
|
ExpLoadInitialProcess(IN PINIT_BUFFER InitBuffer,
|
||||||
OUT PRTL_USER_PROCESS_PARAMETERS *ProcessParameters,
|
OUT PRTL_USER_PROCESS_PARAMETERS *ProcessParameters,
|
||||||
OUT PCHAR *ProcessEnvironment)
|
OUT PCHAR *ProcessEnvironment)
|
||||||
|
@ -593,6 +596,7 @@ ExpLoadInitialProcess(IN PINIT_BUFFER InitBuffer,
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExComputeTickCountMultiplier(IN ULONG ClockIncrement)
|
ExComputeTickCountMultiplier(IN ULONG ClockIncrement)
|
||||||
{
|
{
|
||||||
ULONG MsRemainder = 0, MsIncrement;
|
ULONG MsRemainder = 0, MsIncrement;
|
||||||
|
@ -625,6 +629,7 @@ ExComputeTickCountMultiplier(IN ULONG ClockIncrement)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitSystemPhase0(VOID)
|
ExpInitSystemPhase0(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize EXRESOURCE Support */
|
/* Initialize EXRESOURCE Support */
|
||||||
|
@ -647,6 +652,7 @@ ExpInitSystemPhase0(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitSystemPhase1(VOID)
|
ExpInitSystemPhase1(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize worker threads */
|
/* Initialize worker threads */
|
||||||
|
@ -684,6 +690,7 @@ ExpInitSystemPhase1(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExInitSystem(VOID)
|
ExInitSystem(VOID)
|
||||||
{
|
{
|
||||||
/* Check the initialization phase */
|
/* Check the initialization phase */
|
||||||
|
@ -709,6 +716,7 @@ ExInitSystem(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpIsLoaderValid(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
ExpIsLoaderValid(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLOADER_PARAMETER_EXTENSION Extension;
|
PLOADER_PARAMETER_EXTENSION Extension;
|
||||||
|
@ -734,6 +742,7 @@ ExpIsLoaderValid(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
ULONG i = 0;
|
ULONG i = 0;
|
||||||
|
@ -826,6 +835,7 @@ ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExBurnMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
ExBurnMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN ULONG PagesToDestroy,
|
IN ULONG PagesToDestroy,
|
||||||
IN TYPE_OF_MEMORY MemoryType)
|
IN TYPE_OF_MEMORY MemoryType)
|
||||||
|
@ -871,6 +881,7 @@ ExBurnMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitializeExecutive(IN ULONG Cpu,
|
ExpInitializeExecutive(IN ULONG Cpu,
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
|
@ -1281,6 +1292,7 @@ ExpInitializeExecutive(IN ULONG Cpu,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Phase1InitializationDiscard(IN PVOID Context)
|
Phase1InitializationDiscard(IN PVOID Context)
|
||||||
{
|
{
|
||||||
PLOADER_PARAMETER_BLOCK LoaderBlock = Context;
|
PLOADER_PARAMETER_BLOCK LoaderBlock = Context;
|
||||||
|
@ -1899,6 +1911,7 @@ Phase1InitializationDiscard(IN PVOID Context)
|
||||||
InbvUpdateProgressBar(90);
|
InbvUpdateProgressBar(90);
|
||||||
|
|
||||||
/* Launch initial process */
|
/* Launch initial process */
|
||||||
|
DPRINT1("Free non-cache pages: %lx\n", MmAvailablePages + MiMemoryConsumers[MC_CACHE].PagesUsed);
|
||||||
ProcessInfo = &InitBuffer->ProcessInfo;
|
ProcessInfo = &InitBuffer->ProcessInfo;
|
||||||
ExpLoadInitialProcess(InitBuffer, &ProcessParameters, &Environment);
|
ExpLoadInitialProcess(InitBuffer, &ProcessParameters, &Environment);
|
||||||
|
|
||||||
|
@ -1945,6 +1958,7 @@ Phase1InitializationDiscard(IN PVOID Context)
|
||||||
|
|
||||||
/* Free the boot buffer */
|
/* Free the boot buffer */
|
||||||
ExFreePool(InitBuffer);
|
ExFreePool(InitBuffer);
|
||||||
|
DPRINT1("Free non-cache pages: %lx\n", MmAvailablePages + MiMemoryConsumers[MC_CACHE].PagesUsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -31,6 +31,7 @@ GENERAL_LOOKASIDE ExpSmallPagedPoolLookasideLists[MAXIMUM_PROCESSORS];
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExInitializeSystemLookasideList(IN PGENERAL_LOOKASIDE List,
|
ExInitializeSystemLookasideList(IN PGENERAL_LOOKASIDE List,
|
||||||
IN POOL_TYPE Type,
|
IN POOL_TYPE Type,
|
||||||
IN ULONG Size,
|
IN ULONG Size,
|
||||||
|
@ -58,6 +59,7 @@ ExInitializeSystemLookasideList(IN PGENERAL_LOOKASIDE List,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExInitPoolLookasidePointers(VOID)
|
ExInitPoolLookasidePointers(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
@ -87,6 +89,7 @@ ExInitPoolLookasidePointers(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitLookasideLists()
|
ExpInitLookasideLists()
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -41,6 +41,7 @@ ULONG ExPushLockSpinCount = 0;
|
||||||
*--*/
|
*--*/
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExpInitializePushLocks(VOID)
|
ExpInitializePushLocks(VOID)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
PMEMORY_ALLOCATION_DESCRIPTOR
|
PMEMORY_ALLOCATION_DESCRIPTOR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
XIPpFindMemoryDescriptor(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
XIPpFindMemoryDescriptor(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
@ -40,6 +41,7 @@ XIPpFindMemoryDescriptor(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
XIPInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
XIPInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PCHAR CommandLine, XipBoot, XipRom, XipMegs, XipVerbose, XipRam;
|
PCHAR CommandLine, XipBoot, XipRom, XipMegs, XipVerbose, XipRam;
|
||||||
|
|
|
@ -155,6 +155,7 @@ PUCHAR FsRtlLegalAnsiCharacterArray = LegalAnsiCharacterArray;
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
FsRtlInitSystem(VOID)
|
FsRtlInitSystem(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -28,6 +28,7 @@ BT_PROGRESS_INDICATOR InbvProgressIndicator = {0, 25, 0};
|
||||||
|
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
FindBitmapResource(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
FindBitmapResource(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN ULONG ResourceId)
|
IN ULONG ResourceId)
|
||||||
{
|
{
|
||||||
|
@ -92,6 +93,7 @@ FindBitmapResource(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
InbvDriverInitialize(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
InbvDriverInitialize(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN ULONG Count)
|
IN ULONG Count)
|
||||||
{
|
{
|
||||||
|
@ -174,6 +176,7 @@ InbvReleaseLock(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
InbvEnableBootDriver(IN BOOLEAN Enable)
|
InbvEnableBootDriver(IN BOOLEAN Enable)
|
||||||
{
|
{
|
||||||
/* Check if we're installed */
|
/* Check if we're installed */
|
||||||
|
@ -408,6 +411,7 @@ InbvSolidColorFill(IN ULONG Left,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
InbvUpdateProgressBar(IN ULONG Progress)
|
InbvUpdateProgressBar(IN ULONG Progress)
|
||||||
{
|
{
|
||||||
ULONG FillCount, BoundedProgress;
|
ULONG FillCount, BoundedProgress;
|
||||||
|
@ -523,6 +527,7 @@ InbvSetProgressBarSubset(IN ULONG Floor,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
InbvIndicateProgress(VOID)
|
InbvIndicateProgress(VOID)
|
||||||
{
|
{
|
||||||
ULONG Percentage;
|
ULONG Percentage;
|
||||||
|
@ -570,6 +575,7 @@ NtDisplayString(IN PUNICODE_STRING DisplayString)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
DisplayBootBitmap(IN BOOLEAN SosMode)
|
DisplayBootBitmap(IN BOOLEAN SosMode)
|
||||||
{
|
{
|
||||||
PVOID Header, Band, Text, Screen;
|
PVOID Header, Band, Text, Screen;
|
||||||
|
@ -705,6 +711,7 @@ DisplayBootBitmap(IN BOOLEAN SosMode)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
FinalizeBootLogo(VOID)
|
FinalizeBootLogo(VOID)
|
||||||
{
|
{
|
||||||
/* Acquire lock and check the display state */
|
/* Acquire lock and check the display state */
|
||||||
|
|
|
@ -785,6 +785,7 @@ Cleanup:
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
IopReassignSystemRoot(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
IopReassignSystemRoot(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
OUT PANSI_STRING NtBootPath)
|
OUT PANSI_STRING NtBootPath)
|
||||||
{
|
{
|
||||||
|
|
|
@ -709,6 +709,7 @@ MiResolveImageReferences(IN PVOID ImageBase,
|
||||||
//
|
//
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
|
LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
|
||||||
PUNICODE_STRING FileName,
|
PUNICODE_STRING FileName,
|
||||||
PLDR_DATA_TABLE_ENTRY *ModuleObject)
|
PLDR_DATA_TABLE_ENTRY *ModuleObject)
|
||||||
|
@ -784,6 +785,7 @@ LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
||||||
{
|
{
|
||||||
PDEVICE_NODE DeviceNode;
|
PDEVICE_NODE DeviceNode;
|
||||||
|
@ -870,6 +872,7 @@ IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
||||||
*/
|
*/
|
||||||
VOID
|
VOID
|
||||||
FASTCALL
|
FASTCALL
|
||||||
|
INIT_FUNCTION
|
||||||
IopInitializeBootDrivers(VOID)
|
IopInitializeBootDrivers(VOID)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY ListHead, NextEntry, NextEntry2;
|
PLIST_ENTRY ListHead, NextEntry, NextEntry2;
|
||||||
|
@ -1061,6 +1064,7 @@ IopInitializeBootDrivers(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
FASTCALL
|
FASTCALL
|
||||||
|
INIT_FUNCTION
|
||||||
IopInitializeSystemDrivers(VOID)
|
IopInitializeSystemDrivers(VOID)
|
||||||
{
|
{
|
||||||
PUNICODE_STRING *DriverList, *SavedList;
|
PUNICODE_STRING *DriverList, *SavedList;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
IopStartRamdisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IopStartRamdisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PMEMORY_ALLOCATION_DESCRIPTOR MemoryDescriptor;
|
PMEMORY_ALLOCATION_DESCRIPTOR MemoryDescriptor;
|
||||||
|
|
|
@ -1076,6 +1076,7 @@ RawUnload(IN PDRIVER_OBJECT DriverObject)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject,
|
RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
IN PUNICODE_STRING RegistryPath)
|
IN PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,6 +44,7 @@ IopInitializeArbiters(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PiInitCacheGroupInformation(VOID)
|
PiInitCacheGroupInformation(VOID)
|
||||||
{
|
{
|
||||||
HANDLE KeyHandle;
|
HANDLE KeyHandle;
|
||||||
|
@ -355,6 +356,7 @@ PipCallDriverAddDevice(IN PDEVICE_NODE DeviceNode,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
IopInitializePlugPlayServices(VOID)
|
IopInitializePlugPlayServices(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
|
@ -2606,6 +2606,7 @@ cleanup:
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
IopUpdateRootKey(VOID)
|
IopUpdateRootKey(VOID)
|
||||||
{
|
{
|
||||||
UNICODE_STRING EnumU = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Enum");
|
UNICODE_STRING EnumU = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Enum");
|
||||||
|
|
|
@ -44,6 +44,7 @@ PKDP_INIT_ROUTINE InitRoutines[KdMax] = {KdpScreenInit,
|
||||||
|
|
||||||
PCHAR
|
PCHAR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KdpGetDebugMode(PCHAR Currentp2)
|
KdpGetDebugMode(PCHAR Currentp2)
|
||||||
{
|
{
|
||||||
PCHAR p2 = Currentp2;
|
PCHAR p2 = Currentp2;
|
||||||
|
@ -118,6 +119,7 @@ KdpGetDebugMode(PCHAR Currentp2)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KdpCallInitRoutine(ULONG BootPhase)
|
KdpCallInitRoutine(ULONG BootPhase)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY CurrentEntry;
|
PLIST_ENTRY CurrentEntry;
|
||||||
|
|
|
@ -134,6 +134,7 @@ KdpPrintToLogFile(PCH String,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KdpInitDebugLog(PKD_DISPATCH_TABLE DispatchTable,
|
KdpInitDebugLog(PKD_DISPATCH_TABLE DispatchTable,
|
||||||
ULONG BootPhase)
|
ULONG BootPhase)
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,6 +70,7 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KdInitSystem(IN ULONG BootPhase,
|
KdInitSystem(IN ULONG BootPhase,
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1695,6 +1695,7 @@ continue_execution:
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KdbpGetCommandLineSettings(
|
KdbpGetCommandLineSettings(
|
||||||
PCHAR p1)
|
PCHAR p1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
PCONFIGURATION_COMPONENT_DATA
|
PCONFIGURATION_COMPONENT_DATA
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
||||||
IN CONFIGURATION_CLASS Class,
|
IN CONFIGURATION_CLASS Class,
|
||||||
IN CONFIGURATION_TYPE Type,
|
IN CONFIGURATION_TYPE Type,
|
||||||
|
@ -39,6 +40,7 @@ KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
||||||
*/
|
*/
|
||||||
PCONFIGURATION_COMPONENT_DATA
|
PCONFIGURATION_COMPONENT_DATA
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KeFindConfigurationNextEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
KeFindConfigurationNextEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
||||||
IN CONFIGURATION_CLASS Class,
|
IN CONFIGURATION_CLASS Class,
|
||||||
IN CONFIGURATION_TYPE Type,
|
IN CONFIGURATION_TYPE Type,
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
|
#if !defined(_X86_)
|
||||||
|
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
@ -1412,3 +1414,4 @@ KiRosPrepareForSystemStartup(IN PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
/* Do general System Startup */
|
/* Do general System Startup */
|
||||||
KiSystemStartup(NtLoaderBlock);
|
KiSystemStartup(NtLoaderBlock);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -120,6 +120,7 @@ RDMSR(IN ULONG Register)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiSetProcessorType(VOID)
|
KiSetProcessorType(VOID)
|
||||||
{
|
{
|
||||||
ULONG EFlags, NewEFlags;
|
ULONG EFlags, NewEFlags;
|
||||||
|
@ -186,6 +187,7 @@ KiSetProcessorType(VOID)
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiGetCpuVendor(VOID)
|
KiGetCpuVendor(VOID)
|
||||||
{
|
{
|
||||||
PKPRCB Prcb = KeGetCurrentPrcb();
|
PKPRCB Prcb = KeGetCurrentPrcb();
|
||||||
|
@ -247,6 +249,7 @@ KiGetCpuVendor(VOID)
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiGetFeatureBits(VOID)
|
KiGetFeatureBits(VOID)
|
||||||
{
|
{
|
||||||
PKPRCB Prcb = KeGetCurrentPrcb();
|
PKPRCB Prcb = KeGetCurrentPrcb();
|
||||||
|
@ -472,6 +475,7 @@ KiGetFeatureBits(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiGetCacheInformation(VOID)
|
KiGetCacheInformation(VOID)
|
||||||
{
|
{
|
||||||
PKIPCR Pcr = (PKIPCR)KeGetPcr();
|
PKIPCR Pcr = (PKIPCR)KeGetPcr();
|
||||||
|
@ -774,6 +778,7 @@ KiGetCacheInformation(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiSetCR0Bits(VOID)
|
KiSetCR0Bits(VOID)
|
||||||
{
|
{
|
||||||
ULONG Cr0;
|
ULONG Cr0;
|
||||||
|
@ -790,6 +795,7 @@ KiSetCR0Bits(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializeTSS2(IN PKTSS Tss,
|
KiInitializeTSS2(IN PKTSS Tss,
|
||||||
IN PKGDTENTRY TssEntry OPTIONAL)
|
IN PKGDTENTRY TssEntry OPTIONAL)
|
||||||
{
|
{
|
||||||
|
@ -843,6 +849,7 @@ KiInitializeTSS(IN PKTSS Tss)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
FASTCALL
|
FASTCALL
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386InitializeTss(IN PKTSS Tss,
|
Ki386InitializeTss(IN PKTSS Tss,
|
||||||
IN PKIDTENTRY Idt,
|
IN PKIDTENTRY Idt,
|
||||||
IN PKGDTENTRY Gdt)
|
IN PKGDTENTRY Gdt)
|
||||||
|
@ -1002,6 +1009,7 @@ KiSaveProcessorControlState(OUT PKPROCESSOR_STATE ProcessorState)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializeMachineType(VOID)
|
KiInitializeMachineType(VOID)
|
||||||
{
|
{
|
||||||
/* Set the Machine Type we got from NTLDR */
|
/* Set the Machine Type we got from NTLDR */
|
||||||
|
@ -1010,6 +1018,7 @@ KiInitializeMachineType(VOID)
|
||||||
|
|
||||||
ULONG_PTR
|
ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context)
|
KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
/* Set CS and ESP */
|
/* Set CS and ESP */
|
||||||
|
@ -1023,6 +1032,7 @@ KiLoadFastSyscallMachineSpecificRegisters(IN ULONG_PTR Context)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiRestoreFastSyscallReturnState(VOID)
|
KiRestoreFastSyscallReturnState(VOID)
|
||||||
{
|
{
|
||||||
/* Check if the CPU Supports fast system call */
|
/* Check if the CPU Supports fast system call */
|
||||||
|
@ -1056,6 +1066,7 @@ KiRestoreFastSyscallReturnState(VOID)
|
||||||
|
|
||||||
ULONG_PTR
|
ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386EnableDE(IN ULONG_PTR Context)
|
Ki386EnableDE(IN ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
/* Enable DE */
|
/* Enable DE */
|
||||||
|
@ -1065,6 +1076,7 @@ Ki386EnableDE(IN ULONG_PTR Context)
|
||||||
|
|
||||||
ULONG_PTR
|
ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386EnableFxsr(IN ULONG_PTR Context)
|
Ki386EnableFxsr(IN ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
/* Enable FXSR */
|
/* Enable FXSR */
|
||||||
|
@ -1074,6 +1086,7 @@ Ki386EnableFxsr(IN ULONG_PTR Context)
|
||||||
|
|
||||||
ULONG_PTR
|
ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386EnableXMMIExceptions(IN ULONG_PTR Context)
|
Ki386EnableXMMIExceptions(IN ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
PKIDTENTRY IdtEntry;
|
PKIDTENTRY IdtEntry;
|
||||||
|
@ -1096,6 +1109,7 @@ Ki386EnableXMMIExceptions(IN ULONG_PTR Context)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiI386PentiumLockErrataFixup(VOID)
|
KiI386PentiumLockErrataFixup(VOID)
|
||||||
{
|
{
|
||||||
KDESCRIPTOR IdtDescriptor;
|
KDESCRIPTOR IdtDescriptor;
|
||||||
|
@ -1187,6 +1201,7 @@ KiSaveProcessorState(IN PKTRAP_FRAME TrapFrame,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiIsNpxPresent(VOID)
|
KiIsNpxPresent(VOID)
|
||||||
{
|
{
|
||||||
ULONG Cr0;
|
ULONG Cr0;
|
||||||
|
@ -1227,6 +1242,7 @@ KiIsNpxPresent(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiIsNpxErrataPresent(VOID)
|
KiIsNpxErrataPresent(VOID)
|
||||||
{
|
{
|
||||||
BOOLEAN ErrataPresent;
|
BOOLEAN ErrataPresent;
|
||||||
|
|
|
@ -33,6 +33,7 @@ ULONGLONG BootCycles, BootCyclesEnd;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitMachineDependent(VOID)
|
KiInitMachineDependent(VOID)
|
||||||
{
|
{
|
||||||
ULONG CpuCount;
|
ULONG CpuCount;
|
||||||
|
@ -325,6 +326,7 @@ KiInitMachineDependent(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializePcr(IN ULONG ProcessorNumber,
|
KiInitializePcr(IN ULONG ProcessorNumber,
|
||||||
IN PKIPCR Pcr,
|
IN PKIPCR Pcr,
|
||||||
IN PKIDTENTRY Idt,
|
IN PKIDTENTRY Idt,
|
||||||
|
@ -386,6 +388,7 @@ KiInitializePcr(IN ULONG ProcessorNumber,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializeKernel(IN PKPROCESS InitProcess,
|
KiInitializeKernel(IN PKPROCESS InitProcess,
|
||||||
IN PKTHREAD InitThread,
|
IN PKTHREAD InitThread,
|
||||||
IN PVOID IdleStack,
|
IN PVOID IdleStack,
|
||||||
|
@ -607,6 +610,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
FASTCALL
|
FASTCALL
|
||||||
|
INIT_FUNCTION
|
||||||
KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
|
KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
|
||||||
IN PKIDTENTRY *Idt,
|
IN PKIDTENTRY *Idt,
|
||||||
IN PKIPCR *Pcr,
|
IN PKIPCR *Pcr,
|
||||||
|
@ -647,6 +651,7 @@ KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiSystemStartupBootStack(VOID)
|
KiSystemStartupBootStack(VOID)
|
||||||
{
|
{
|
||||||
PKTHREAD Thread;
|
PKTHREAD Thread;
|
||||||
|
@ -676,6 +681,7 @@ KiSystemStartupBootStack(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
ULONG Cpu;
|
ULONG Cpu;
|
||||||
|
@ -689,10 +695,10 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
/* Boot cycles timestamp */
|
/* Boot cycles timestamp */
|
||||||
BootCycles = __rdtsc();
|
BootCycles = __rdtsc();
|
||||||
|
#if !defined(_X86_)
|
||||||
/* Check if we are being booted from FreeLDR */
|
/* Check if we are being booted from FreeLDR */
|
||||||
if (!((ULONG_PTR)LoaderBlock & 0x80000000)) KiRosPrepareForSystemStartup((PROS_LOADER_PARAMETER_BLOCK)LoaderBlock);
|
if (!((ULONG_PTR)LoaderBlock & 0x80000000)) KiRosPrepareForSystemStartup((PROS_LOADER_PARAMETER_BLOCK)LoaderBlock);
|
||||||
|
#endif
|
||||||
/* Save the loader block and get the current CPU */
|
/* Save the loader block and get the current CPU */
|
||||||
KeLoaderBlock = LoaderBlock;
|
KeLoaderBlock = LoaderBlock;
|
||||||
Cpu = KeNumberProcessors;
|
Cpu = KeNumberProcessors;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializeMTRR(IN BOOLEAN FinalCpu)
|
KiInitializeMTRR(IN BOOLEAN FinalCpu)
|
||||||
{
|
{
|
||||||
/* FIXME: Support this */
|
/* FIXME: Support this */
|
||||||
|
@ -26,6 +27,7 @@ KiInitializeMTRR(IN BOOLEAN FinalCpu)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiAmdK6InitializeMTRR(VOID)
|
KiAmdK6InitializeMTRR(VOID)
|
||||||
{
|
{
|
||||||
/* FIXME: Support this */
|
/* FIXME: Support this */
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
ULONG_PTR
|
ULONG_PTR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386EnableGlobalPage(IN volatile ULONG_PTR Context)
|
Ki386EnableGlobalPage(IN volatile ULONG_PTR Context)
|
||||||
{
|
{
|
||||||
volatile PLONG Count = (PLONG)Context;
|
volatile PLONG Count = (PLONG)Context;
|
||||||
|
@ -52,6 +53,7 @@ Ki386EnableGlobalPage(IN volatile ULONG_PTR Context)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitializePAT(VOID)
|
KiInitializePAT(VOID)
|
||||||
{
|
{
|
||||||
/* FIXME: Support this */
|
/* FIXME: Support this */
|
||||||
|
|
|
@ -57,6 +57,7 @@ KSPIN_LOCK KiReverseStallIpiLock;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitSystem(VOID)
|
KiInitSystem(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
@ -108,6 +109,7 @@ KiInitSystem(VOID)
|
||||||
|
|
||||||
LARGE_INTEGER
|
LARGE_INTEGER
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiComputeReciprocal(IN LONG Divisor,
|
KiComputeReciprocal(IN LONG Divisor,
|
||||||
OUT PUCHAR Shift)
|
OUT PUCHAR Shift)
|
||||||
{
|
{
|
||||||
|
@ -171,6 +173,7 @@ KiComputeReciprocal(IN LONG Divisor,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KiInitSpinLocks(IN PKPRCB Prcb,
|
KiInitSpinLocks(IN PKPRCB Prcb,
|
||||||
IN CCHAR Number)
|
IN CCHAR Number)
|
||||||
{
|
{
|
||||||
|
@ -276,6 +279,7 @@ KiInitSpinLocks(IN PKPRCB Prcb,
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KeInitSystem(VOID)
|
KeInitSystem(VOID)
|
||||||
{
|
{
|
||||||
/* Check if Threaded DPCs are enabled */
|
/* Check if Threaded DPCs are enabled */
|
||||||
|
|
|
@ -33,6 +33,7 @@ static GENERIC_MAPPING LpcpPortMapping =
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
LpcInitSystem(VOID)
|
LpcInitSystem(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_TYPE_INITIALIZER ObjectTypeInitializer;
|
OBJECT_TYPE_INITIALIZER ObjectTypeInitializer;
|
||||||
|
|
|
@ -288,6 +288,7 @@ ExpCheckPoolBlocks(IN PVOID Block)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
|
ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
|
||||||
IN POOL_TYPE PoolType,
|
IN POOL_TYPE PoolType,
|
||||||
IN ULONG PoolIndex,
|
IN ULONG PoolIndex,
|
||||||
|
@ -333,6 +334,7 @@ ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
InitializePool(IN POOL_TYPE PoolType,
|
InitializePool(IN POOL_TYPE PoolType,
|
||||||
IN ULONG Threshold)
|
IN ULONG Threshold)
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,6 +33,7 @@ MMPTE PrototypePte = {.u.Long = (MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiComputeNonPagedPoolVa(IN ULONG FreePages)
|
MiComputeNonPagedPoolVa(IN ULONG FreePages)
|
||||||
{
|
{
|
||||||
IN PFN_NUMBER PoolPages;
|
IN PFN_NUMBER PoolPages;
|
||||||
|
@ -148,6 +149,7 @@ MiComputeNonPagedPoolVa(IN ULONG FreePages)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
|
|
@ -31,6 +31,7 @@ BOOLEAN MiLargePageAllDrivers;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeLargePageSupport(VOID)
|
MiInitializeLargePageSupport(VOID)
|
||||||
{
|
{
|
||||||
#if _MI_PAGING_LEVELS > 2
|
#if _MI_PAGING_LEVELS > 2
|
||||||
|
@ -50,6 +51,7 @@ MiInitializeLargePageSupport(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiSyncCachedRanges(VOID)
|
MiSyncCachedRanges(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
@ -64,6 +66,7 @@ MiSyncCachedRanges(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeDriverLargePageList(VOID)
|
MiInitializeDriverLargePageList(VOID)
|
||||||
{
|
{
|
||||||
PWCHAR p, pp;
|
PWCHAR p, pp;
|
||||||
|
|
|
@ -365,6 +365,7 @@ FALSE;
|
||||||
|
|
||||||
PFN_NUMBER
|
PFN_NUMBER
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MxGetNextPage(IN PFN_NUMBER PageCount)
|
MxGetNextPage(IN PFN_NUMBER PageCount)
|
||||||
{
|
{
|
||||||
PFN_NUMBER Pfn;
|
PFN_NUMBER Pfn;
|
||||||
|
@ -389,6 +390,7 @@ MxGetNextPage(IN PFN_NUMBER PageCount)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiComputeColorInformation(VOID)
|
MiComputeColorInformation(VOID)
|
||||||
{
|
{
|
||||||
ULONG L2Associativity;
|
ULONG L2Associativity;
|
||||||
|
@ -442,6 +444,7 @@ MiComputeColorInformation(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeColorTables(VOID)
|
MiInitializeColorTables(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
@ -491,6 +494,7 @@ MiInitializeColorTables(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiIsRegularMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
MiIsRegularMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN PFN_NUMBER Pfn)
|
IN PFN_NUMBER Pfn)
|
||||||
{
|
{
|
||||||
|
@ -549,6 +553,7 @@ MiIsRegularMemory(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiMapPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiMapPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
ULONG FreePage, FreePageCount, PagesLeft, BasePage, PageCount;
|
ULONG FreePage, FreePageCount, PagesLeft, BasePage, PageCount;
|
||||||
|
@ -644,6 +649,7 @@ MiMapPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildPfnDatabaseFromPages(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiBuildPfnDatabaseFromPages(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PMMPDE PointerPde;
|
PMMPDE PointerPde;
|
||||||
|
@ -752,6 +758,7 @@ MiBuildPfnDatabaseFromPages(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildPfnDatabaseZeroPage(VOID)
|
MiBuildPfnDatabaseZeroPage(VOID)
|
||||||
{
|
{
|
||||||
PMMPFN Pfn1;
|
PMMPFN Pfn1;
|
||||||
|
@ -774,6 +781,7 @@ MiBuildPfnDatabaseZeroPage(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildPfnDatabaseFromLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiBuildPfnDatabaseFromLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
@ -917,6 +925,7 @@ MiBuildPfnDatabaseFromLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildPfnDatabaseSelf(VOID)
|
MiBuildPfnDatabaseSelf(VOID)
|
||||||
{
|
{
|
||||||
PMMPTE PointerPte, LastPte;
|
PMMPTE PointerPte, LastPte;
|
||||||
|
@ -946,6 +955,7 @@ MiBuildPfnDatabaseSelf(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializePfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiInitializePfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
/* Scan memory and start setting up PFN entries */
|
/* Scan memory and start setting up PFN entries */
|
||||||
|
@ -963,6 +973,7 @@ MiInitializePfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiAdjustWorkingSetManagerParameters(IN BOOLEAN Client)
|
MiAdjustWorkingSetManagerParameters(IN BOOLEAN Client)
|
||||||
{
|
{
|
||||||
/* This function needs to do more work, for now, we tune page minimums */
|
/* This function needs to do more work, for now, we tune page minimums */
|
||||||
|
@ -977,6 +988,7 @@ MiAdjustWorkingSetManagerParameters(IN BOOLEAN Client)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiNotifyMemoryEvents(VOID)
|
MiNotifyMemoryEvents(VOID)
|
||||||
{
|
{
|
||||||
/* Are we in a low-memory situation? */
|
/* Are we in a low-memory situation? */
|
||||||
|
@ -1002,6 +1014,7 @@ MiNotifyMemoryEvents(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiCreateMemoryEvent(IN PUNICODE_STRING Name,
|
MiCreateMemoryEvent(IN PUNICODE_STRING Name,
|
||||||
OUT PKEVENT *Event)
|
OUT PKEVENT *Event)
|
||||||
{
|
{
|
||||||
|
@ -1096,6 +1109,7 @@ CleanUp:
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeMemoryEvents(VOID)
|
MiInitializeMemoryEvents(VOID)
|
||||||
{
|
{
|
||||||
UNICODE_STRING LowString = RTL_CONSTANT_STRING(L"\\KernelObjects\\LowMemoryCondition");
|
UNICODE_STRING LowString = RTL_CONSTANT_STRING(L"\\KernelObjects\\LowMemoryCondition");
|
||||||
|
@ -1174,6 +1188,7 @@ MiInitializeMemoryEvents(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiAddHalIoMappings(VOID)
|
MiAddHalIoMappings(VOID)
|
||||||
{
|
{
|
||||||
PVOID BaseAddress;
|
PVOID BaseAddress;
|
||||||
|
@ -1401,6 +1416,7 @@ MiPagesInLoaderBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
|
|
||||||
PPHYSICAL_MEMORY_DESCRIPTOR
|
PPHYSICAL_MEMORY_DESCRIPTOR
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitializeMemoryLimits(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
MmInitializeMemoryLimits(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN PBOOLEAN IncludeType)
|
IN PBOOLEAN IncludeType)
|
||||||
{
|
{
|
||||||
|
@ -1537,6 +1553,7 @@ MmInitializeMemoryLimits(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildPagedPool(VOID)
|
MiBuildPagedPool(VOID)
|
||||||
{
|
{
|
||||||
PMMPTE PointerPte, PointerPde;
|
PMMPTE PointerPte, PointerPde;
|
||||||
|
@ -1747,6 +1764,7 @@ MiBuildPagedPool(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiDbgDumpMemoryDescriptors(VOID)
|
MiDbgDumpMemoryDescriptors(VOID)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
@ -1798,6 +1816,7 @@ MiDbgDumpMemoryDescriptors(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmArmInitSystem(IN ULONG Phase,
|
MmArmInitSystem(IN ULONG Phase,
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
|
|
|
@ -177,6 +177,7 @@ MiProtectedPoolRemoveEntryList(IN PLIST_ENTRY Entry)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeNonPagedPoolThresholds(VOID)
|
MiInitializeNonPagedPoolThresholds(VOID)
|
||||||
{
|
{
|
||||||
PFN_NUMBER Size = MmMaximumNonPagedPoolInPages;
|
PFN_NUMBER Size = MmMaximumNonPagedPoolInPages;
|
||||||
|
@ -193,6 +194,7 @@ MiInitializeNonPagedPoolThresholds(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializePoolEvents(VOID)
|
MiInitializePoolEvents(VOID)
|
||||||
{
|
{
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
|
@ -267,6 +269,7 @@ MiInitializePoolEvents(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeNonPagedPool(VOID)
|
MiInitializeNonPagedPool(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -1023,6 +1023,7 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitializeHandBuiltProcess(IN PEPROCESS Process,
|
MmInitializeHandBuiltProcess(IN PEPROCESS Process,
|
||||||
IN PULONG_PTR DirectoryTableBase)
|
IN PULONG_PTR DirectoryTableBase)
|
||||||
{
|
{
|
||||||
|
@ -1044,6 +1045,7 @@ MmInitializeHandBuiltProcess(IN PEPROCESS Process,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitializeHandBuiltProcess2(IN PEPROCESS Process)
|
MmInitializeHandBuiltProcess2(IN PEPROCESS Process)
|
||||||
{
|
{
|
||||||
/* Lock the VAD, ARM3-owned ranges away */
|
/* Lock the VAD, ARM3-owned ranges away */
|
||||||
|
|
|
@ -563,6 +563,7 @@ MiProcessLoaderEntry(IN PLDR_DATA_TABLE_ENTRY LdrEntry,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiUpdateThunks(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
MiUpdateThunks(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
IN PVOID OldBase,
|
IN PVOID OldBase,
|
||||||
IN PVOID NewBase,
|
IN PVOID NewBase,
|
||||||
|
@ -1364,6 +1365,7 @@ CheckDllState:
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiReloadBootLoadedDrivers(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiReloadBootLoadedDrivers(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry;
|
PLIST_ENTRY NextEntry;
|
||||||
|
@ -1552,6 +1554,7 @@ MiReloadBootLoadedDrivers(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiBuildImportsForBootDrivers(VOID)
|
MiBuildImportsForBootDrivers(VOID)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY NextEntry, NextEntry2;
|
PLIST_ENTRY NextEntry, NextEntry2;
|
||||||
|
@ -1817,6 +1820,7 @@ MiBuildImportsForBootDrivers(VOID)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiLocateKernelSections(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
MiLocateKernelSections(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
||||||
{
|
{
|
||||||
ULONG_PTR DllBase;
|
ULONG_PTR DllBase;
|
||||||
|
@ -1877,6 +1881,7 @@ MiLocateKernelSections(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeLoadedModuleList(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiInitializeLoadedModuleList(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PLDR_DATA_TABLE_ENTRY LdrEntry, NewEntry;
|
PLDR_DATA_TABLE_ENTRY LdrEntry, NewEntry;
|
||||||
|
|
|
@ -366,6 +366,7 @@ MiReleaseSystemPtes(IN PMMPTE StartingPte,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiInitializeSystemPtes(IN PMMPTE StartingPte,
|
MiInitializeSystemPtes(IN PMMPTE StartingPte,
|
||||||
IN ULONG NumberOfPtes,
|
IN ULONG NumberOfPtes,
|
||||||
IN MMSYSTEM_PTE_POOL_TYPE PoolType)
|
IN MMSYSTEM_PTE_POOL_TYPE PoolType)
|
||||||
|
|
|
@ -39,6 +39,7 @@ MmZeroPageThread(VOID)
|
||||||
/* FIXME: Get the discardable sections to free them */
|
/* FIXME: Get the discardable sections to free them */
|
||||||
// MiFindInitializationCode(&StartAddress, &EndAddress);
|
// MiFindInitializationCode(&StartAddress, &EndAddress);
|
||||||
// if (StartAddress) MiFreeInitializationCode(StartAddress, EndAddress);
|
// if (StartAddress) MiFreeInitializationCode(StartAddress, EndAddress);
|
||||||
|
DPRINT1("Free non-cache pages: %lx\n", MmAvailablePages + MiMemoryConsumers[MC_CACHE].PagesUsed);
|
||||||
|
|
||||||
/* Set our priority to 0 */
|
/* Set our priority to 0 */
|
||||||
Thread->BasePriority = 0;
|
Thread->BasePriority = 0;
|
||||||
|
|
|
@ -231,6 +231,7 @@ MiInitSystemMemoryAreas()
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MiDbgDumpAddressSpace(VOID)
|
MiDbgDumpAddressSpace(VOID)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
@ -312,6 +313,7 @@ MmMpwThreadMain(PVOID Ignored)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitMpwThread(VOID)
|
MmInitMpwThread(VOID)
|
||||||
{
|
{
|
||||||
KPRIORITY Priority;
|
KPRIORITY Priority;
|
||||||
|
@ -343,6 +345,7 @@ MmInitMpwThread(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitBsmThread(VOID)
|
MmInitBsmThread(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -366,6 +369,7 @@ MmInitBsmThread(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
MmInitSystem(IN ULONG Phase,
|
MmInitSystem(IN ULONG Phase,
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,12 +19,6 @@ SECTIONS
|
||||||
*(.gcc_exc)
|
*(.gcc_exc)
|
||||||
__text_end__ = .;
|
__text_end__ = .;
|
||||||
*(.gcc_except_table)
|
*(.gcc_except_table)
|
||||||
}
|
|
||||||
init BLOCK(__section_alignment__) :
|
|
||||||
{
|
|
||||||
__init_start__ = . ;
|
|
||||||
*(init)
|
|
||||||
__init_end__ = . ;
|
|
||||||
}
|
}
|
||||||
/* The Cygwin32 library uses a section to avoid copying certain data
|
/* The Cygwin32 library uses a section to avoid copying certain data
|
||||||
on fork. This used to be named ".data". The linker used
|
on fork. This used to be named ".data". The linker used
|
||||||
|
@ -101,5 +95,11 @@ SECTIONS
|
||||||
{
|
{
|
||||||
[ .stabstr ]
|
[ .stabstr ]
|
||||||
}
|
}
|
||||||
|
INIT BLOCK(__section_alignment__) :
|
||||||
|
{
|
||||||
|
__init_start__ = . ;
|
||||||
|
*(INIT)
|
||||||
|
__init_end__ = . ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ UNICODE_STRING ObpDosDevicesShortName =
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ObpCreateDosDevicesDirectory(VOID)
|
ObpCreateDosDevicesDirectory(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
|
|
@ -57,6 +57,7 @@ ObpSdReleaseLockShared(IN POB_SD_CACHE_LIST CacheEntry)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
ObpInitSdCache(VOID)
|
ObpInitSdCache(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
|
@ -127,6 +127,7 @@ PopSetSystemPowerState(SYSTEM_POWER_STATE PowerState)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PoInitSystem(IN ULONG BootPhase)
|
PoInitSystem(IN ULONG BootPhase)
|
||||||
{
|
{
|
||||||
PVOID NotificationEntry;
|
PVOID NotificationEntry;
|
||||||
|
@ -216,6 +217,7 @@ PopIdle0(IN PPROCESSOR_POWER_STATE PowerState)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PoInitializePrcb(IN PKPRCB Prcb)
|
PoInitializePrcb(IN PKPRCB Prcb)
|
||||||
{
|
{
|
||||||
/* Initialize the Power State */
|
/* Initialize the Power State */
|
||||||
|
|
|
@ -72,6 +72,7 @@ PspDeleteJob ( PVOID ObjectBody )
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspInitializeJobStructures(VOID)
|
PspInitializeJobStructures(VOID)
|
||||||
{
|
{
|
||||||
InitializeListHead(&PsJobListHead);
|
InitializeListHead(&PsJobListHead);
|
||||||
|
|
|
@ -65,6 +65,7 @@ BOOLEAN PspDoingGiveBacks;
|
||||||
|
|
||||||
USHORT
|
USHORT
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
NameToOrdinal(IN PCHAR Name,
|
NameToOrdinal(IN PCHAR Name,
|
||||||
IN PVOID DllBase,
|
IN PVOID DllBase,
|
||||||
IN ULONG NumberOfNames,
|
IN ULONG NumberOfNames,
|
||||||
|
@ -107,6 +108,7 @@ NameToOrdinal(IN PCHAR Name,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
LookupEntryPoint(IN PVOID DllBase,
|
LookupEntryPoint(IN PVOID DllBase,
|
||||||
IN PCHAR Name,
|
IN PCHAR Name,
|
||||||
OUT PVOID *EntryPoint)
|
OUT PVOID *EntryPoint)
|
||||||
|
@ -158,6 +160,7 @@ LookupEntryPoint(IN PVOID DllBase,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspLookupSystemDllEntryPoint(IN PCHAR Name,
|
PspLookupSystemDllEntryPoint(IN PCHAR Name,
|
||||||
IN PVOID *EntryPoint)
|
IN PVOID *EntryPoint)
|
||||||
{
|
{
|
||||||
|
@ -167,6 +170,7 @@ PspLookupSystemDllEntryPoint(IN PCHAR Name,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspLookupKernelUserEntryPoints(VOID)
|
PspLookupKernelUserEntryPoints(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -239,6 +243,7 @@ PspLookupKernelUserEntryPoints(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspMapSystemDll(IN PEPROCESS Process,
|
PspMapSystemDll(IN PEPROCESS Process,
|
||||||
IN PVOID *DllBase,
|
IN PVOID *DllBase,
|
||||||
IN BOOLEAN UseLargePages)
|
IN BOOLEAN UseLargePages)
|
||||||
|
@ -272,6 +277,7 @@ PspMapSystemDll(IN PEPROCESS Process,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PsLocateSystemDll(VOID)
|
PsLocateSystemDll(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
@ -357,6 +363,7 @@ PsLocateSystemDll(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspInitializeSystemDll(VOID)
|
PspInitializeSystemDll(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -389,6 +396,7 @@ PspInitializeSystemDll(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspInitPhase1()
|
PspInitPhase1()
|
||||||
{
|
{
|
||||||
/* Initialize the System DLL and return status of operation */
|
/* Initialize the System DLL and return status of operation */
|
||||||
|
@ -398,6 +406,7 @@ PspInitPhase1()
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PspInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
PspInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -616,6 +625,7 @@ PspInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PsInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
PsInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
/* Check the initialization phase */
|
/* Check the initialization phase */
|
||||||
|
|
|
@ -98,6 +98,7 @@ PspReturnProcessQuotaSpecifiedPool(IN PEPROCESS Process,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
PsInitializeQuotaSystem(VOID)
|
PsInitializeQuotaSystem(VOID)
|
||||||
{
|
{
|
||||||
RtlZeroMemory(&PspDefaultQuotaBlock, sizeof(PspDefaultQuotaBlock));
|
RtlZeroMemory(&PspDefaultQuotaBlock, sizeof(PspDefaultQuotaBlock));
|
||||||
|
|
|
@ -86,6 +86,7 @@ SepInitExports(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
SepInitializationPhase0(VOID)
|
SepInitializationPhase0(VOID)
|
||||||
{
|
{
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
@ -117,6 +118,7 @@ SepInitializationPhase0(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
SepInitializationPhase1(VOID)
|
SepInitializationPhase1(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -139,6 +141,7 @@ SepInitializationPhase1(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
SeInitSystem(VOID)
|
SeInitSystem(VOID)
|
||||||
{
|
{
|
||||||
/* Check the initialization phase */
|
/* Check the initialization phase */
|
||||||
|
@ -168,6 +171,7 @@ SeInitSystem(VOID)
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
SeInitSRM(VOID)
|
SeInitSRM(VOID)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
|
|
@ -15,11 +15,11 @@
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS *********************************************************/
|
/* PRIVATE FUNCTIONS *********************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
Ki386VdmEnablePentiumExtentions(IN BOOLEAN Enable)
|
Ki386VdmEnablePentiumExtentions(IN BOOLEAN Enable)
|
||||||
{
|
{
|
||||||
ULONG EFlags, Cr4;
|
ULONG EFlags, Cr4;
|
||||||
|
@ -38,6 +38,7 @@ Ki386VdmEnablePentiumExtentions(IN BOOLEAN Enable)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
KeI386VdmInitialize(VOID)
|
KeI386VdmInitialize(VOID)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -84,6 +85,7 @@ KeI386VdmInitialize(VOID)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
INIT_FUNCTION
|
||||||
VdmpInitialize(PVOID ControlData)
|
VdmpInitialize(PVOID ControlData)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
|
Loading…
Reference in a new issue