blob: e4a1bbbd6c8fa714c2bbe651b2b8a24d1683bfab (
plain) (
tree)
|
|
#include "Uefi.h"
#include "Library/UefiLib.h"
#include "Library/UefiApplicationEntryPoint.h"
#include "Guid/FileSystemInfo.h"
#include "main.h" // TODO move into main dir
#include "memtest86+/logger.h"
extern EFI_SYSTEM_TABLE *gST;
short logflag = 1;
short log_fine = 0;
short log_memspeed = 0;
short log_mem_tbl = 1;
short log_comp_seg = 0;
short log_print_pmap = 1;
short log_get_memsize = 1;
EFI_STATUS
EFIAPI
UefiMain (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
init_logger();
if (logflag) {
char msg[] = "MemtestEfi started";
print_log(msg, sizeof(msg) - 1);
}
test_start();
if (logflag) {
char msg[] = "MemtestEfi finished!\n";
print_log(msg, sizeof(msg) - 1);
}
// while(1) {}
SystemTable->ConOut->SetCursorPosition(SystemTable->ConOut, 0, 25);
return EFI_SUCCESS;
}
|