mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
MdeModulePkg/EbcDxe: Fix Xcode compilation due to bad type conversion
This commit is contained in:
parent
049d5649f1
commit
edf5d2b553
@ -186,11 +186,18 @@ InitEbcVmTestProtocol (
|
|||||||
@return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status.
|
@return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EbcVmTestUnsupported (
|
EbcVmTestUnsupported (
|
||||||
VOID
|
IN EFI_EBC_VM_TEST_PROTOCOL *This,
|
||||||
);
|
IN CHAR16 *AsmText,
|
||||||
|
IN OUT INT8 *Buffer,
|
||||||
|
IN OUT UINTN *BufferLen
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return EFI_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Registers a callback function that the EBC interpreter calls to flush the
|
Registers a callback function that the EBC interpreter calls to flush the
|
||||||
@ -374,6 +381,27 @@ EbcIsImageSupported (
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
This is a wrapper for the Flush callback routine needed for type compatibility.
|
||||||
|
|
||||||
|
@param Start The beginning physical address to flush from the processor's instruction cache.
|
||||||
|
@param Length The number of bytes to flush from the processor's instruction cache.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
|
|
||||||
|
**/
|
||||||
|
STATIC
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
EbcInvalidateInstructionCache (
|
||||||
|
IN EFI_PHYSICAL_ADDRESS Start,
|
||||||
|
IN UINT64 Length
|
||||||
|
)
|
||||||
|
{
|
||||||
|
InvalidateInstructionCacheRange((VOID*)(UINTN)Start, (UINTN)Length);
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register a supported PE/COFF image with the emulator. After this call
|
Register a supported PE/COFF image with the emulator. After this call
|
||||||
completes successfully, the PE/COFF image may be started as usual, and
|
completes successfully, the PE/COFF image may be started as usual, and
|
||||||
@ -407,7 +435,7 @@ EbcRegisterImage (
|
|||||||
{
|
{
|
||||||
EbcRegisterICacheFlush (
|
EbcRegisterICacheFlush (
|
||||||
NULL,
|
NULL,
|
||||||
(EBC_ICACHE_FLUSH)InvalidateInstructionCacheRange
|
EbcInvalidateInstructionCache
|
||||||
);
|
);
|
||||||
|
|
||||||
return EbcCreateThunk (
|
return EbcCreateThunk (
|
||||||
@ -1489,8 +1517,8 @@ InitEbcVmTestProtocol (
|
|||||||
EbcVmTestProtocol->Execute = (EBC_VM_TEST_EXECUTE)EbcExecuteInstructions;
|
EbcVmTestProtocol->Execute = (EBC_VM_TEST_EXECUTE)EbcExecuteInstructions;
|
||||||
|
|
||||||
DEBUG_CODE_BEGIN ();
|
DEBUG_CODE_BEGIN ();
|
||||||
EbcVmTestProtocol->Assemble = (EBC_VM_TEST_ASM)EbcVmTestUnsupported;
|
EbcVmTestProtocol->Assemble = EbcVmTestUnsupported;
|
||||||
EbcVmTestProtocol->Disassemble = (EBC_VM_TEST_DASM)EbcVmTestUnsupported;
|
EbcVmTestProtocol->Disassemble = EbcVmTestUnsupported;
|
||||||
DEBUG_CODE_END ();
|
DEBUG_CODE_END ();
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1505,21 +1533,6 @@ InitEbcVmTestProtocol (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
Returns the EFI_UNSUPPORTED Status.
|
|
||||||
|
|
||||||
@return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status.
|
|
||||||
|
|
||||||
**/
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
EbcVmTestUnsupported (
|
|
||||||
VOID
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return EFI_UNSUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocates a buffer of type EfiBootServicesCode.
|
Allocates a buffer of type EfiBootServicesCode.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user