29 CHAR8 AddrAscii[17], AddrAscii2[17];
38 p = (CHAR8*)(ConfData + i);
55 MemCopy(AddrAscii, (p + 1), 16);
56 MemCopy(AddrAscii2, (p + 1 + 16 + 1), 16);
57 Addr = AsciiStrHexToUint64(AddrAscii);
58 Addr2 = AsciiStrHexToUint64(AddrAscii2);
61 LogFullAscii(
"%a: badd command at i = %08x bad_index=%d addr1=%a(%lx) addr2=%a(%lx)\r\n",
75 while (ConfData[i] !=
'\n')
77 if (i >= ConfDataSize)
105 EFI_FILE_PROTOCOL *File;
109 #define MAX_CONF_DATA 512*10
113 Status =
OpenFile(ConfPath, EFI_FILE_MODE_READ, &File);
115 if (EFI_ERROR(Status))
119 LogFullAscii(
"%a: unable to open configuration file, status = %08x\r\n",
120 __FUNCTION__, Status);
129 LogFileAscii(
"%a: MemAllocate returned error!\r\n", __FUNCTION__);
131 return EFI_NOT_FOUND;
135 Status = File->Read(File, &ConfSize, ConfData);