Specifications
Code Definitions
49
EFI_LEGACY_BIOS_PROTOCOL.CopyLegacyRegion()
Summary
This function is called when copying data to the region assigned by
EFI_LEGACY_BIOS_PROTOCOL.GetLegacyRegion().
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_LEGACY_BIOS_COPY_LEGACY_REGION) (
IN EFI_LEGACY_BIOS_PROTOCOL *This,
IN UINTN LegacyMemorySize,
IN VOID *LegacyMemoryAddress,
IN VOID *LegacyMemorySourceAddress
)
Parameters
This
Indicates the EFI_LEGACY_BIOS_PROTOCOL instance.
LegacyMemorySize
Size in bytes of the memory to copy.
LegacyMemoryAddress
The location within the region returned by
EFI_LEGACY_BIOS_PROTOCOL.GetLegacyRegion().
LegacyMemorySourceAddress
Source of the data to copy.
Description
This function is called when copying data to the region that was assigned by
GetLegacyRegion(). It may be invoked multiple times. This function performs
boundary checking via information passed into the
EFI_LEGACY_BIOS_PROTOCOL.GetLegacyRegion(). The user is responsible for
any internal checking, if this function is invoked multiple times.
Status Codes Returned
EFI_SUCCESS The data was copied successfully.
EFI_ACCESS_DENIED Either the starting or ending address is out of bounds.










