EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenMemoryTest;\r
UINT64 TestedMemorySize;\r
UINT64 TotalMemorySize;\r
- UINT64 PreviousValue;\r
BOOLEAN ErrorOut;\r
BOOLEAN TestAbort;\r
EFI_INPUT_KEY Key;\r
- CHAR16 *StrTotalMemory;\r
- CHAR16 *Pos;\r
- UINTN StrTotalMemorySize;\r
\r
ReturnStatus = EFI_SUCCESS;\r
ZeroMem (&Key, sizeof (EFI_INPUT_KEY));\r
\r
- StrTotalMemorySize = 128;\r
- Pos = AllocateZeroPool (StrTotalMemorySize);\r
- ASSERT (Pos != NULL);\r
-\r
- StrTotalMemory = Pos;\r
-\r
TestedMemorySize = 0;\r
TotalMemorySize = 0;\r
- PreviousValue = 0;\r
ErrorOut = FALSE;\r
TestAbort = FALSE;\r
\r
(VOID **) &GenMemoryTest\r
);\r
if (EFI_ERROR (Status)) {\r
- FreePool (Pos);\r
return EFI_SUCCESS;\r
}\r
\r
// do the test, and then the status of EFI_NO_MEDIA will be returned by\r
// "MemoryTestInit". So it does not need to test memory again, just return.\r
//\r
- FreePool (Pos);\r
return EFI_SUCCESS;\r
}\r
\r
Done:\r
DEBUG ((DEBUG_INFO, "%d bytes of system memory tested OK\r\n", TotalMemorySize));\r
\r
- FreePool (Pos);\r
return ReturnStatus;\r
}\r