@@ -46,70 +46,6 @@ volatile ULONG KdbDmesgTotalWritten = 0;
46
46
volatile BOOLEAN KdbpIsInDmesgMode = FALSE;
47
47
static KSPIN_LOCK KdpDmesgLogSpinLock ;
48
48
49
- /* UTILITY FUNCTIONS *********************************************************/
50
-
51
- /*
52
- * Get the total size of the memory before
53
- * Mm is initialized, by counting the number
54
- * of physical pages. Useful for debug logging.
55
- *
56
- * Strongly inspired by:
57
- * mm\ARM3\mminit.c : MiScanMemoryDescriptors(...)
58
- *
59
- * See also: kd64\kdinit.c
60
- */
61
- static INIT_FUNCTION
62
- SIZE_T
63
- KdpGetMemorySizeInMBs (IN PLOADER_PARAMETER_BLOCK LoaderBlock )
64
- {
65
- PLIST_ENTRY ListEntry ;
66
- PMEMORY_ALLOCATION_DESCRIPTOR Descriptor ;
67
- SIZE_T NumberOfPhysicalPages = 0 ;
68
-
69
- /* Loop the memory descriptors */
70
- for (ListEntry = LoaderBlock -> MemoryDescriptorListHead .Flink ;
71
- ListEntry != & LoaderBlock -> MemoryDescriptorListHead ;
72
- ListEntry = ListEntry -> Flink )
73
- {
74
- /* Get the descriptor */
75
- Descriptor = CONTAINING_RECORD (ListEntry ,
76
- MEMORY_ALLOCATION_DESCRIPTOR ,
77
- ListEntry );
78
-
79
- /* Check if this is invisible memory */
80
- if ((Descriptor -> MemoryType == LoaderFirmwarePermanent ) ||
81
- (Descriptor -> MemoryType == LoaderSpecialMemory ) ||
82
- (Descriptor -> MemoryType == LoaderHALCachedMemory ) ||
83
- (Descriptor -> MemoryType == LoaderBBTMemory ))
84
- {
85
- /* Skip this descriptor */
86
- continue ;
87
- }
88
-
89
- /* Check if this is bad memory */
90
- if (Descriptor -> MemoryType != LoaderBad )
91
- {
92
- /* Count this in the total of pages */
93
- NumberOfPhysicalPages += Descriptor -> PageCount ;
94
- }
95
- }
96
-
97
- /* Round size up. Assumed to better match actual physical RAM size */
98
- return ALIGN_UP_BY (NumberOfPhysicalPages * PAGE_SIZE , 1024 * 1024 ) / (1024 * 1024 );
99
- }
100
-
101
- /* See also: kd64\kdinit.c */
102
- static INIT_FUNCTION
103
- VOID
104
- KdpPrintBanner (IN SIZE_T MemSizeMBs )
105
- {
106
- DPRINT1 ("-----------------------------------------------------\n" );
107
- DPRINT1 ("ReactOS " KERNEL_VERSION_STR " (Build " KERNEL_VERSION_BUILD_STR ") (Commit " KERNEL_VERSION_COMMIT_HASH ")\n" );
108
- DPRINT1 ("%u System Processor [%u MB Memory]\n" , KeNumberProcessors , MemSizeMBs );
109
- DPRINT1 ("Command Line: %s\n" , KeLoaderBlock -> LoadOptions );
110
- DPRINT1 ("ARC Paths: %s %s %s %s\n" , KeLoaderBlock -> ArcBootDeviceName , KeLoaderBlock -> NtHalPathName , KeLoaderBlock -> ArcHalDeviceName , KeLoaderBlock -> NtBootPathName );
111
- }
112
-
113
49
/* LOCKING FUNCTIONS *********************************************************/
114
50
115
51
KIRQL
@@ -254,7 +190,6 @@ KdpDebugLogInit(PKD_DISPATCH_TABLE DispatchTable,
254
190
IO_STATUS_BLOCK Iosb ;
255
191
HANDLE ThreadHandle ;
256
192
KPRIORITY Priority ;
257
- SIZE_T MemSizeMBs ;
258
193
259
194
if (!KdpDebugMode .File ) return ;
260
195
@@ -277,11 +212,6 @@ KdpDebugLogInit(PKD_DISPATCH_TABLE DispatchTable,
277
212
278
213
/* Initialize spinlock */
279
214
KeInitializeSpinLock (& KdpDebugLogSpinLock );
280
-
281
- /* Display separator + ReactOS version at start of the debug log */
282
- /* Round size up. Assumed to better match actual physical RAM size */
283
- MemSizeMBs = ALIGN_UP_BY (MmNumberOfPhysicalPages * PAGE_SIZE , 1024 * 1024 ) / (1024 * 1024 );
284
- KdpPrintBanner (MemSizeMBs );
285
215
}
286
216
else if (BootPhase == 2 )
287
217
{
@@ -374,7 +304,6 @@ NTAPI
374
304
KdpSerialInit (PKD_DISPATCH_TABLE DispatchTable ,
375
305
ULONG BootPhase )
376
306
{
377
- SIZE_T MemSizeMBs ;
378
307
if (!KdpDebugMode .Serial ) return ;
379
308
380
309
if (BootPhase == 0 )
@@ -396,10 +325,6 @@ KdpSerialInit(PKD_DISPATCH_TABLE DispatchTable,
396
325
397
326
/* Register as a Provider */
398
327
InsertTailList (& KdProviders , & DispatchTable -> KdProvidersList );
399
-
400
- /* Display separator + ReactOS version at start of the debug log */
401
- MemSizeMBs = KdpGetMemorySizeInMBs (KeLoaderBlock );
402
- KdpPrintBanner (MemSizeMBs );
403
328
}
404
329
else if (BootPhase == 2 )
405
330
{
@@ -545,7 +470,6 @@ NTAPI
545
470
KdpScreenInit (PKD_DISPATCH_TABLE DispatchTable ,
546
471
ULONG BootPhase )
547
472
{
548
- SIZE_T MemSizeMBs ;
549
473
if (!KdpDebugMode .Screen ) return ;
550
474
551
475
if (BootPhase == 0 )
@@ -572,11 +496,6 @@ KdpScreenInit(PKD_DISPATCH_TABLE DispatchTable,
572
496
573
497
/* Initialize spinlock */
574
498
KeInitializeSpinLock (& KdpDmesgLogSpinLock );
575
-
576
- /* Display separator + ReactOS version at start of the debug log */
577
- /* Round size up. Assumed to better match actual physical RAM size */
578
- MemSizeMBs = ALIGN_UP_BY (MmNumberOfPhysicalPages * PAGE_SIZE , 1024 * 1024 ) / (1024 * 1024 );
579
- KdpPrintBanner (MemSizeMBs );
580
499
}
581
500
else if (BootPhase == 2 )
582
501
{
0 commit comments