summaryrefslogblamecommitdiffstats
path: root/efi_memtest/MemtestEfi.c
blob: bfdfbda944094917c0c1fd95318749e6d3420d78 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                              
                                
 

                                            
 


                                         






                                   
 


                                    
                                 
 
               
 
                                         
                                    
               

 


                     

#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"

// TODO switch between logger and display
volatile short logflag = 1;

EFI_STATUS
EFIAPI
UefiMain (
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE  *SystemTable
  )
{

  init_logger();

  char msg[] = "MemtestEfi started";
  print_log(msg, sizeof(msg) -1);

  test_start();

  char msg2[] = "MemtestEfi finished!\n";
  print_log(msg2, sizeof(msg2) - 1);
  //while(1) {}


  return EFI_SUCCESS;
}