49 OUT X86_ASSEMBLY_PATCH_LABEL *InstructionEnd,
58 ASSERT ((
UINTN)InstructionEnd > ValueSize);
62 ASSERT (PatchValue <= MAX_UINT8);
63 *((UINT8 *)(
UINTN)InstructionEnd - 1) = (UINT8)PatchValue;
67 ASSERT (PatchValue <= MAX_UINT16);
72 ASSERT (PatchValue <= MAX_UINT32);
UINT32 EFIAPI WriteUnaligned32(OUT UINT32 *Buffer, IN UINT32 Value)
UINT16 EFIAPI WriteUnaligned16(OUT UINT16 *Buffer, IN UINT16 Value)
UINT64 EFIAPI WriteUnaligned64(OUT UINT64 *Buffer, IN UINT64 Value)
VOID EFIAPI PatchInstructionX86(OUT X86_ASSEMBLY_PATCH_LABEL *InstructionEnd, IN UINT64 PatchValue, IN UINTN ValueSize)