Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode
- 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:
-
- 11 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/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DataHubStatusCodeWorker.c
r48674 r58466 63 63 // 64 64 // Memory management should work at <=TPL_NOTIFY 65 // 65 // 66 66 gBS->RestoreTPL (CurrentTpl); 67 67 return NULL; … … 133 133 /** 134 134 Release given record and return it to free record buffer. 135 135 136 136 @param RecordData Pointer to the record to release. 137 137 … … 349 349 350 350 Status = gBS->LocateProtocol ( 351 &gEfiDataHubProtocolGuid, 352 NULL, 351 &gEfiDataHubProtocolGuid, 352 NULL, 353 353 (VOID **) &mDataHubProtocol 354 354 ); -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c
r48674 r58466 46 46 @param ImageHandle The firmware allocated handle for the EFI image. 47 47 @param SystemTable A pointer to the EFI System Table. 48 48 49 49 @retval EFI_SUCCESS The entry point is executed successfully. 50 50 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.inf
r58459 r58466 20 20 FILE_GUID = 863D214F-0920-437B-8CAD-88EA83A24E97 21 21 MODULE_TYPE = DXE_DRIVER 22 VERSION_STRING = 1.0 22 VERSION_STRING = 1.0 23 23 ENTRY_POINT = DatahubStatusCodeHandlerDxeEntry 24 24 … … 33 33 DatahubStatusCodeHandlerDxe.c 34 34 DataHubStatusCodeWorker.c 35 35 36 36 [Packages] 37 37 MdePkg/MdePkg.dec … … 39 39 IntelFrameworkPkg/IntelFrameworkPkg.dec 40 40 IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec 41 41 42 42 [LibraryClasses] 43 43 BaseLib … … 51 51 SynchronizationLib 52 52 BaseMemoryLib 53 53 54 54 [Guids] 55 55 gEfiEventExitBootServicesGuid ## CONSUMES ## Event 56 56 gEfiDataHubStatusCodeRecordGuid ## PRODUCES ## UNDEFINED # DataRecord Guid 57 57 gEfiStatusCodeDataTypeDebugGuid ## SOMETIMES_PRODUCES ## UNDEFINED # Record data type 58 58 59 59 [Protocols] 60 60 gEfiRscHandlerProtocolGuid ## CONSUMES -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/Pei/MemoryStausCodeWorker.c
r48674 r58466 82 82 83 83 // 84 // Find GUID'ed HOBs to locate current record buffer. 84 // Find GUID'ed HOBs to locate current record buffer. 85 85 // 86 86 Hob.Raw = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid); -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.c
r48674 r58466 96 96 /** 97 97 Entry point of Status Code PEIM. 98 98 99 99 This function is the entry point of this Status Code PEIM. 100 100 It initializes supported status code devices according to PCD settings, -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/DataHubStatusCodeWorker.c
r48674 r58466 63 63 // 64 64 // Memory management should work at <=TPL_NOTIFY 65 // 65 // 66 66 gBS->RestoreTPL (CurrentTpl); 67 67 return NULL; … … 133 133 /** 134 134 Release given record and return it to free record buffer. 135 135 136 136 @param RecordData Pointer to the record to release. 137 137 … … 213 213 } 214 214 } 215 215 216 216 Record = AcquireRecordBuffer (); 217 217 if (Record == NULL) { … … 363 363 364 364 Status = gBS->LocateProtocol ( 365 &gEfiDataHubProtocolGuid, 366 NULL, 365 &gEfiDataHubProtocolGuid, 366 NULL, 367 367 (VOID **) &mDataHubProtocol 368 368 ); -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/RtMemoryStatusCodeWorker.c
r48674 r58466 3 3 4 4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 12 13 13 **/ … … 19 19 /** 20 20 Initialize runtime memory status code table as initialization for runtime memory status code worker 21 21 22 22 @retval EFI_SUCCESS Runtime memory status code table successfully initialized. 23 23 … … 39 39 mRtMemoryStatusCodeTable->RecordIndex = 0; 40 40 mRtMemoryStatusCodeTable->NumberOfRecords = 0; 41 mRtMemoryStatusCodeTable->MaxRecordsNumber = 41 mRtMemoryStatusCodeTable->MaxRecordsNumber = 42 42 (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD); 43 43 … … 47 47 48 48 /** 49 Report status code into runtime memory. If the runtime pool is full, roll back to the 49 Report status code into runtime memory. If the runtime pool is full, roll back to the 50 50 first record and overwrite it. 51 51 52 52 @param CodeType Indicates the type of status code being reported. 53 53 @param Value Describes the current status of a hardware or software entity. … … 56 56 @param Instance The enumeration of a hardware or software entity within 57 57 the system. Valid instance numbers start with 1. 58 58 59 59 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 60 60 -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
r58459 r58466 3 3 4 4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 12 13 13 **/ … … 17 17 /** 18 18 Convert status code value and extended data to readable ASCII string, send string to serial I/O device. 19 19 20 20 @param CodeType Indicates the type of status code being reported. 21 21 @param Value Describes the current status of a hardware or software entity. … … 73 73 // 74 74 CharCount = AsciiBSPrint ( 75 Buffer, 76 sizeof (Buffer), 77 Format, 75 Buffer, 76 sizeof (Buffer), 77 Format, 78 78 Marker 79 79 ); … … 83 83 // 84 84 CharCount = AsciiSPrint ( 85 Buffer, 86 sizeof (Buffer), 87 "ERROR: C%08x:V%08x I%x", 88 CodeType, 89 Value, 85 Buffer, 86 sizeof (Buffer), 87 "ERROR: C%08x:V%08x I%x", 88 CodeType, 89 Value, 90 90 Instance 91 91 ); 92 92 93 93 if (CallerId != NULL) { 94 94 CharCount += AsciiSPrint ( … … 119 119 // 120 120 CharCount = AsciiSPrint ( 121 Buffer, 122 sizeof (Buffer), 123 "PROGRESS CODE: V%08x I%x\n\r", 124 Value, 121 Buffer, 122 sizeof (Buffer), 123 "PROGRESS CODE: V%08x I%x\n\r", 124 Value, 125 125 Instance 126 126 ); … … 142 142 // 143 143 CharCount = AsciiSPrint ( 144 Buffer, 145 sizeof (Buffer), 146 "Undefined: C%08x:V%08x I%x\n\r", 147 CodeType, 148 Value, 144 Buffer, 145 sizeof (Buffer), 146 "Undefined: C%08x:V%08x I%x\n\r", 147 CodeType, 148 Value, 149 149 Instance 150 150 ); -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.c
r48674 r58466 39 39 @param ImageHandle The firmware allocated handle for the EFI image. 40 40 @param SystemTable A pointer to the EFI System Table. 41 41 42 42 @retval EFI_SUCCESS The entry point is executed successfully. 43 43 … … 193 193 194 194 /** 195 Dispatch initialization request to sub status code devices based on 195 Dispatch initialization request to sub status code devices based on 196 196 customized feature flags. 197 197 198 198 **/ 199 199 VOID … … 237 237 238 238 // 239 // Replay Status code which saved in GUID'ed HOB to all supported devices. 239 // Replay Status code which saved in GUID'ed HOB to all supported devices. 240 240 // 241 241 if (FeaturePcdGet (PcdStatusCodeReplayIn)) { 242 // 243 // Journal GUID'ed HOBs to find all record entry, if found, 242 // 243 // Journal GUID'ed HOBs to find all record entry, if found, 244 244 // then output record to support replay device. 245 245 // -
trunk/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.h
r48674 r58466 97 97 98 98 /** 99 Dispatch initialization request to sub status code devices based on 99 Dispatch initialization request to sub status code devices based on 100 100 customized feature flags. 101 101 102 102 **/ 103 103 VOID … … 109 109 /** 110 110 Locates Serial I/O Protocol as initialization for serial status code worker. 111 111 112 112 @retval EFI_SUCCESS Serial I/O Protocol is successfully located. 113 113 … … 121 121 /** 122 122 Convert status code value and extended data to readable ASCII string, send string to serial I/O device. 123 123 124 124 @param CodeType Indicates the type of status code being reported. 125 125 @param Value Describes the current status of a hardware or software entity. … … 149 149 /** 150 150 Initialize runtime memory status code table as initialization for runtime memory status code worker 151 151 152 152 @retval EFI_SUCCESS Runtime memory status code table successfully initialized. 153 153 … … 159 159 160 160 /** 161 Report status code into runtime memory. If the runtime pool is full, roll back to the 161 Report status code into runtime memory. If the runtime pool is full, roll back to the 162 162 first record and overwrite it. 163 163 164 164 @param CodeType Indicates the type of status code being reported. 165 165 @param Value Describes the current status of a hardware or software entity. … … 168 168 @param Instance The enumeration of a hardware or software entity within 169 169 the system. Valid instance numbers start with 1. 170 170 171 171 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 172 172
Note:
See TracChangeset
for help on using the changeset viewer.