- ContainVariableMtrr = FALSE;\r
- for (Index = 0; Index < VariableMtrrCount; Index++) {\r
- if ((Mtrrs->Variables.Mtrr[Index].Mask & BIT11) == 0) {\r
- //\r
- // If mask is not valid, then do not display range\r
- //\r
- continue;\r
+\r
+ if (OsServiceDebugPrint != NULL) {\r
+ for (Index = 0; Index < MTRR_NUMBER_OF_FIXED_MTRR; Index++) {\r
+ AsciiSPrint (\r
+ &DebugMessage[0],\r
+ ARRAY_SIZE (DebugMessage),\r
+ " Fixed MTRR[%02d] : %016lx\n",\r
+ Index,\r
+ Mtrrs->Fixed.Mtrr[Index]\r
+ );\r
+ OsServiceDebugPrint (&DebugMessage[0]);\r
+ }\r
+\r
+ ContainVariableMtrr = FALSE;\r
+ for (Index = 0; Index < VariableMtrrCount; Index++) {\r
+ if ((Mtrrs->Variables.Mtrr[Index].Mask & BIT11) == 0) {\r
+ //\r
+ // If mask is not valid, then do not display range\r
+ //\r
+ continue;\r
+ }\r
+ ContainVariableMtrr = TRUE;\r
+ AsciiSPrint (\r
+ &DebugMessage[0],\r
+ ARRAY_SIZE (DebugMessage),\r
+ " Variable MTRR[%02d]: Base=%016lx Mask=%016lx\n",\r
+ Index,\r
+ Mtrrs->Variables.Mtrr[Index].Base,\r
+ Mtrrs->Variables.Mtrr[Index].Mask\r
+ );\r
+ OsServiceDebugPrint (&DebugMessage[0]);\r