VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Variable/RuntimeDxe/Reclaim.c

    r48674 r58459  
    44  (Fault Tolerant Write) protocol.
    55
    6 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
     6Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
    77This program and the accompanying materials
    88are licensed and made available under the terms and conditions of the BSD License
     
    4848  UINT32                              LbaIndex;
    4949
     50  Fvb     = NULL;
    5051  *Lba    = (EFI_LBA) (-1);
    5152  *Offset = 0;
     
    100101
    101102  @param  VariableBase   Base address of variable to write
    102   @param  Buffer         Point to the data buffer.
    103   @param  BufferSize     The number of bytes of the data Buffer.
     103  @param  VariableBuffer Point to the variable data buffer.
    104104
    105105  @retval EFI_SUCCESS    The function completed successfully.
     
    111111FtwVariableSpace (
    112112  IN EFI_PHYSICAL_ADDRESS   VariableBase,
    113   IN UINT8                  *Buffer,
    114   IN UINTN                  BufferSize
     113  IN VARIABLE_STORE_HEADER  *VariableBuffer
    115114  )
    116115{
     
    119118  EFI_LBA                            VarLba;
    120119  UINTN                              VarOffset;
    121   UINT8                              *FtwBuffer;
    122120  UINTN                              FtwBufferSize;
    123121  EFI_FAULT_TOLERANT_WRITE_PROTOCOL  *FtwProtocol;
     
    144142    return EFI_ABORTED;
    145143  }
    146   //
    147   // Prepare for the variable data.
    148   //
     144
    149145  FtwBufferSize = ((VARIABLE_STORE_HEADER *) ((UINTN) VariableBase))->Size;
    150   FtwBuffer     = AllocatePool (FtwBufferSize);
    151   if (FtwBuffer == NULL) {
    152     return EFI_OUT_OF_RESOURCES;
    153   }
    154 
    155   SetMem (FtwBuffer, FtwBufferSize, (UINT8) 0xff);
    156   CopyMem (FtwBuffer, Buffer, BufferSize);
     146  ASSERT (FtwBufferSize == VariableBuffer->Size);
    157147
    158148  //
     
    166156                          NULL,           // PrivateData NULL
    167157                          FvbHandle,      // Fvb Handle
    168                           FtwBuffer      // write buffer
     158                          (VOID *) VariableBuffer // write buffer
    169159                          );
    170160
    171   FreePool (FtwBuffer);
    172161  return Status;
    173162}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette