Ventoy: EDK2: adapt for loogarch in edk2-edk2-stable202408

INSTALL/ventoy/ventoy_${postfix}.efi
INSTALL/ventoy/vtoyutil_${postfix}.efi
VDiskChain/Tool/vdiskchain_${postfix}.efi

Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This commit is contained in:
Wentao Guan
2024-08-26 16:03:50 +08:00
parent f14326c70f
commit babf879823
10 changed files with 632 additions and 13 deletions

View File

@@ -94,9 +94,14 @@ EFI_STATUS EFIAPI vdisk_block_io_write
EFI_STATUS EFIAPI vdisk_fill_device_path(VOID)
{
UINTN NameLen = 0;
UINT8 TmpBuf[128] = {0};
UINT8 TmpBuf[128];
UINT8 i;
VENDOR_DEVICE_PATH *venPath = NULL;
for (i = 0; i < 128; i++)
{
TmpBuf[i] = 0;
}
venPath = (VENDOR_DEVICE_PATH *)TmpBuf;
NameLen = StrSize(VDISK_BLOCK_DEVICE_PATH_NAME);
venPath->Header.Type = HARDWARE_DEVICE_PATH;