Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Variable/Pei
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103777
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
- Property svn:mergeinfo changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Variable/Pei/Variable.c
r58459 r58466 35 35 /** 36 36 Provide the functionality of the variable services. 37 38 @param FileHandle Handle of the file being invoked. 37 38 @param FileHandle Handle of the file being invoked. 39 39 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile(). 40 40 @param PeiServices General purpose services available to every PEIM. … … 194 194 { 195 195 UINTN Value; 196 196 197 197 // 198 198 // Be careful about pad size for alignment … … 452 452 453 453 NvStorageSize = PcdGet32 (PcdFlashNvStorageVariableSize); 454 NvStorageBase = (EFI_PHYSICAL_ADDRESS) (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0 ? 455 PcdGet64 (PcdFlashNvStorageVariableBase64) : 454 NvStorageBase = (EFI_PHYSICAL_ADDRESS) (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0 ? 455 PcdGet64 (PcdFlashNvStorageVariableBase64) : 456 456 PcdGet32 (PcdFlashNvStorageVariableBase) 457 457 ); … … 504 504 // If it's the first time to access variable region in flash, create a guid hob to record 505 505 // VAR_ADDED type variable info. 506 // Note that as the resource of PEI phase is limited, only store the limited number of 506 // Note that as the resource of PEI phase is limited, only store the limited number of 507 507 // VAR_ADDED type variables to reduce access time. 508 508 // … … 620 620 EFI_PHYSICAL_ADDRESS SpareAddress; 621 621 UINTN PartialSize; 622 622 623 623 if (StoreInfo->FtwLastWriteData != NULL) { 624 624 TargetAddress = StoreInfo->FtwLastWriteData->TargetAddress; … … 827 827 StoreInfo, 828 828 VariableName, 829 VendorGuid, 829 VendorGuid, 830 830 PtrTrack 831 831 ); … … 841 841 This service retrieves a variable's value using its name and GUID. 842 842 843 Read the specified variable from the UEFI variable store. If the Data 843 Read the specified variable from the UEFI variable store. If the Data 844 844 buffer is too small to hold the contents of the variable, the error 845 845 EFI_BUFFER_TOO_SMALL is returned and DataSize is set to the required buffer … … 857 857 @retval EFI_SUCCESS The variable was read successfully. 858 858 @retval EFI_NOT_FOUND The variable could not be found. 859 @retval EFI_BUFFER_TOO_SMALL The DataSize is too small for the resulting data. 860 DataSize is updated with the size required for 859 @retval EFI_BUFFER_TOO_SMALL The DataSize is too small for the resulting data. 860 DataSize is updated with the size required for 861 861 the specified variable. 862 862 @retval EFI_INVALID_PARAMETER VariableName, VariableGuid, DataSize or Data is NULL. … … 922 922 Return the next variable name and GUID. 923 923 924 This function is called multiple times to retrieve the VariableName 925 and VariableGuid of all variables currently available in the system. 926 On each call, the previous results are passed into the interface, 927 and, on return, the interface returns the data for the next 928 interface. When the entire variable list has been returned, 924 This function is called multiple times to retrieve the VariableName 925 and VariableGuid of all variables currently available in the system. 926 On each call, the previous results are passed into the interface, 927 and, on return, the interface returns the data for the next 928 interface. When the entire variable list has been returned, 929 929 EFI_NOT_FOUND is returned. 930 930 … … 935 935 @param VariableName On entry, a pointer to a null-terminated string that is the variable's name. 936 936 On return, points to the next variable's null-terminated name string. 937 @param VariableGuid On entry, a pointer to an EFI_GUID that is the variable's GUID. 937 @param VariableGuid On entry, a pointer to an EFI_GUID that is the variable's GUID. 938 938 On return, a pointer to the next variable's GUID. 939 939 … … 1014 1014 } 1015 1015 // 1016 // Capture the case that 1016 // Capture the case that 1017 1017 // 1. current storage is the last one, or 1018 1018 // 2. no further storage … … 1055 1055 &StoreInfoForHob, 1056 1056 GetVariableNamePtr (Variable.CurrPtr), 1057 &VariableHeader->VendorGuid, 1057 &VariableHeader->VendorGuid, 1058 1058 &VariableInHob 1059 1059 ); -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Variable/Pei/Variable.h
r58459 r58466 56 56 /** 57 57 Provide the functionality of the variable services. 58 59 @param FileHandle Handle of the file being invoked. 58 59 @param FileHandle Handle of the file being invoked. 60 60 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile(). 61 61 @param PeiServices General purpose services available to every PEIM. … … 75 75 This service retrieves a variable's value using its name and GUID. 76 76 77 Read the specified variable from the UEFI variable store. If the Data 77 Read the specified variable from the UEFI variable store. If the Data 78 78 buffer is too small to hold the contents of the variable, the error 79 79 EFI_BUFFER_TOO_SMALL is returned and DataSize is set to the required buffer … … 91 91 @retval EFI_SUCCESS The variable was read successfully. 92 92 @retval EFI_NOT_FOUND The variable could not be found. 93 @retval EFI_BUFFER_TOO_SMALL The DataSize is too small for the resulting data. 94 DataSize is updated with the size required for 93 @retval EFI_BUFFER_TOO_SMALL The DataSize is too small for the resulting data. 94 DataSize is updated with the size required for 95 95 the specified variable. 96 96 @retval EFI_INVALID_PARAMETER VariableName, VariableGuid, DataSize or Data is NULL. … … 112 112 Return the next variable name and GUID. 113 113 114 This function is called multiple times to retrieve the VariableName 115 and VariableGuid of all variables currently available in the system. 116 On each call, the previous results are passed into the interface, 117 and, on return, the interface returns the data for the next 118 interface. When the entire variable list has been returned, 114 This function is called multiple times to retrieve the VariableName 115 and VariableGuid of all variables currently available in the system. 116 On each call, the previous results are passed into the interface, 117 and, on return, the interface returns the data for the next 118 interface. When the entire variable list has been returned, 119 119 EFI_NOT_FOUND is returned. 120 120 … … 125 125 On return, points to the next variable's null-terminated name string. 126 126 127 @param VariableGuid On entry, a pointer to an UEFI _GUID that is the variable's GUID. 127 @param VariableGuid On entry, a pointer to an UEFI _GUID that is the variable's GUID. 128 128 On return, a pointer to the next variable's GUID. 129 129
Note:
See TracChangeset
for help on using the changeset viewer.