Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 15 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/StatusCodeHandler/Pei/MemoryStausCodeWorker.c
r48674 r58466 91 91 92 92 // 93 // Find GUID'ed HOBs to locate current record buffer. 93 // Find GUID'ed HOBs to locate current record buffer. 94 94 // 95 95 Hob.Raw = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid); -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
r58459 r58466 95 95 Instance 96 96 ); 97 97 98 98 ASSERT(CharCount > 0); 99 99 100 100 if (CallerId != NULL) { 101 101 CharCount += AsciiSPrint ( -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.c
r48674 r58466 18 18 /** 19 19 Entry point of Status Code PEIM. 20 20 21 21 This function is the entry point of this Status Code PEIM. 22 22 It initializes supported status code devices according to PCD settings, … … 55 55 Status = SerialPortInitialize(); 56 56 ASSERT_EFI_ERROR (Status); 57 Status = RscHandlerPpi->Register (SerialStatusCodeReportWorker); 57 Status = RscHandlerPpi->Register (SerialStatusCodeReportWorker); 58 58 ASSERT_EFI_ERROR (Status); 59 59 } … … 61 61 Status = MemoryStatusCodeInitializeWorker (); 62 62 ASSERT_EFI_ERROR (Status); 63 Status = RscHandlerPpi->Register (MemoryStatusCodeReportWorker); 63 Status = RscHandlerPpi->Register (MemoryStatusCodeReportWorker); 64 64 ASSERT_EFI_ERROR (Status); 65 65 } -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
r58459 r58466 20 20 FILE_GUID = 9D225237-FA01-464C-A949-BAABC02D31D0 21 21 MODULE_TYPE = PEIM 22 VERSION_STRING = 1.0 22 VERSION_STRING = 1.0 23 23 ENTRY_POINT = StatusCodeHandlerPeiEntry 24 24 … … 49 49 DebugLib 50 50 BaseMemoryLib 51 51 52 52 [Guids] 53 53 ## SOMETIMES_PRODUCES ## HOB … … 55 55 gMemoryStatusCodeRecordGuid 56 56 gEfiStatusCodeDataTypeStringGuid ## SOMETIMES_CONSUMES ## UNDEFINED 57 57 58 58 [Ppis] 59 59 gEfiPeiRscHandlerPpiGuid ## CONSUMES -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/MemoryStatusCodeWorker.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. … … 60 60 different callers. 61 61 @param Data This optional parameter may be used to pass additional data. 62 62 63 63 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 64 64 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/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. … … 74 74 // 75 75 CharCount = AsciiBSPrint ( 76 Buffer, 77 sizeof (Buffer), 78 Format, 76 Buffer, 77 sizeof (Buffer), 78 Format, 79 79 Marker 80 80 ); … … 84 84 // 85 85 CharCount = AsciiSPrint ( 86 Buffer, 87 sizeof (Buffer), 88 "ERROR: C%08x:V%08x I%x", 89 CodeType, 90 Value, 86 Buffer, 87 sizeof (Buffer), 88 "ERROR: C%08x:V%08x I%x", 89 CodeType, 90 Value, 91 91 Instance 92 92 ); 93 93 ASSERT (CharCount > 0); 94 94 95 95 if (CallerId != NULL) { 96 96 CharCount += AsciiSPrint ( … … 121 121 // 122 122 CharCount = AsciiSPrint ( 123 Buffer, 124 sizeof (Buffer), 125 "PROGRESS CODE: V%08x I%x\n\r", 126 Value, 123 Buffer, 124 sizeof (Buffer), 125 "PROGRESS CODE: V%08x I%x\n\r", 126 Value, 127 127 Instance 128 128 ); … … 144 144 // 145 145 CharCount = AsciiSPrint ( 146 Buffer, 147 sizeof (Buffer), 148 "Undefined: C%08x:V%08x I%x\n\r", 149 CodeType, 150 Value, 146 Buffer, 147 sizeof (Buffer), 148 "Undefined: C%08x:V%08x I%x\n\r", 149 CodeType, 150 Value, 151 151 Instance 152 152 ); -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.c
r48674 r58466 67 67 68 68 /** 69 Dispatch initialization request to sub status code devices based on 69 Dispatch initialization request to sub status code devices based on 70 70 customized feature flags. 71 71 72 72 **/ 73 73 VOID … … 100 100 101 101 // 102 // Replay Status code which saved in GUID'ed HOB to all supported devices. 102 // Replay Status code which saved in GUID'ed HOB to all supported devices. 103 103 // 104 104 if (FeaturePcdGet (PcdStatusCodeReplayIn)) { 105 // 106 // Journal GUID'ed HOBs to find all record entry, if found, 105 // 106 // Journal GUID'ed HOBs to find all record entry, if found, 107 107 // then output record to support replay device. 108 108 // … … 153 153 @param ImageHandle The firmware allocated handle for the EFI image. 154 154 @param SystemTable A pointer to the EFI System Table. 155 155 156 156 @retval EFI_SUCCESS The entry point is executed successfully. 157 157 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h
r58459 r58466 54 54 /** 55 55 Locates Serial I/O Protocol as initialization for serial status code worker. 56 56 57 57 @retval EFI_SUCCESS Serial I/O Protocol is successfully located. 58 58 … … 66 66 /** 67 67 Convert status code value and extended data to readable ASCII string, send string to serial I/O device. 68 68 69 69 @param CodeType Indicates the type of status code being reported. 70 70 @param Value Describes the current status of a hardware or software entity. … … 95 95 /** 96 96 Initialize runtime memory status code table as initialization for runtime memory status code worker 97 97 98 98 @retval EFI_SUCCESS Runtime memory status code table successfully initialized. 99 99 … … 105 105 106 106 /** 107 Report status code into runtime memory. If the runtime pool is full, roll back to the 107 Report status code into runtime memory. If the runtime pool is full, roll back to the 108 108 first record and overwrite it. 109 109 110 110 @param CodeType Indicates the type of status code being reported. 111 111 @param Value Describes the current status of a hardware or software entity. … … 118 118 different callers. 119 119 @param Data This optional parameter may be used to pass additional data. 120 120 121 121 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 122 122 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
r58459 r58466 51 51 DebugLib 52 52 BaseMemoryLib 53 53 54 54 [Guids] 55 55 gMemoryStatusCodeRecordGuid ## SOMETIMES_CONSUMES ## HOB -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Smm/MemoryStatusCodeWorker.c
r48674 r58466 3 3 4 4 Copyright (c) 2006 - 2010, 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 SMM memory status code table as initialization for memory status code worker 21 21 22 22 @retval EFI_SUCCESS SMM memory status code table successfully initialized. 23 23 … … 40 40 41 41 /** 42 Report status code into runtime memory. If the runtime pool is full, roll back to the 42 Report status code into runtime memory. If the runtime pool is full, roll back to the 43 43 first record and overwrite it. 44 44 45 45 @param CodeType Indicates the type of status code being reported. 46 46 @param Value Describes the current status of a hardware or software entity. … … 53 53 different callers. 54 54 @param Data This optional parameter may be used to pass additional data. 55 55 56 56 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 57 57 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
r58459 r58466 3 3 4 4 Copyright (c) 2009 - 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. … … 74 74 // 75 75 CharCount = AsciiBSPrint ( 76 Buffer, 77 sizeof (Buffer), 78 Format, 76 Buffer, 77 sizeof (Buffer), 78 Format, 79 79 Marker 80 80 ); … … 84 84 // 85 85 CharCount = AsciiSPrint ( 86 Buffer, 87 sizeof (Buffer), 88 "ERROR: C%08x:V%08x I%x", 89 CodeType, 90 Value, 86 Buffer, 87 sizeof (Buffer), 88 "ERROR: C%08x:V%08x I%x", 89 CodeType, 90 Value, 91 91 Instance 92 92 ); 93 93 ASSERT (CharCount > 0); 94 94 95 95 if (CallerId != NULL) { 96 96 CharCount += AsciiSPrint ( … … 121 121 // 122 122 CharCount = AsciiSPrint ( 123 Buffer, 124 sizeof (Buffer), 125 "PROGRESS CODE: V%08x I%x\n\r", 126 Value, 123 Buffer, 124 sizeof (Buffer), 125 "PROGRESS CODE: V%08x I%x\n\r", 126 Value, 127 127 Instance 128 128 ); … … 144 144 // 145 145 CharCount = AsciiSPrint ( 146 Buffer, 147 sizeof (Buffer), 148 "Undefined: C%08x:V%08x I%x\n\r", 149 CodeType, 150 Value, 146 Buffer, 147 sizeof (Buffer), 148 "Undefined: C%08x:V%08x I%x\n\r", 149 CodeType, 150 Value, 151 151 Instance 152 152 ); -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.c
r48674 r58466 20 20 21 21 /** 22 Dispatch initialization request to sub status code devices based on 22 Dispatch initialization request to sub status code devices based on 23 23 customized feature flags. 24 24 25 25 **/ 26 26 VOID … … 55 55 @param ImageHandle The firmware allocated handle for the EFI image. 56 56 @param SystemTable A pointer to the EFI System Table. 57 57 58 58 @retval EFI_SUCCESS The entry point is executed successfully. 59 59 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.h
r58459 r58466 51 51 /** 52 52 Locates Serial I/O Protocol as initialization for serial status code worker. 53 53 54 54 @retval EFI_SUCCESS Serial I/O Protocol is successfully located. 55 55 … … 63 63 /** 64 64 Convert status code value and extended data to readable ASCII string, send string to serial I/O device. 65 65 66 66 @param CodeType Indicates the type of status code being reported. 67 67 @param Value Describes the current status of a hardware or software entity. … … 92 92 /** 93 93 Initialize runtime memory status code table as initialization for runtime memory status code worker 94 94 95 95 @retval EFI_SUCCESS Runtime memory status code table successfully initialized. 96 96 … … 102 102 103 103 /** 104 Report status code into runtime memory. If the runtime pool is full, roll back to the 104 Report status code into runtime memory. If the runtime pool is full, roll back to the 105 105 first record and overwrite it. 106 106 107 107 @param CodeType Indicates the type of status code being reported. 108 108 @param Value Describes the current status of a hardware or software entity. … … 115 115 different callers. 116 116 @param Data This optional parameter may be used to pass additional data. 117 117 118 118 @retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table. 119 119 -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.inf
r58459 r58466 21 21 MODULE_TYPE = DXE_SMM_DRIVER 22 22 PI_SPECIFICATION_VERSION = 0x0001000A 23 VERSION_STRING = 1.0 23 VERSION_STRING = 1.0 24 24 ENTRY_POINT = StatusCodeHandlerSmmEntry 25 25 … … 50 50 MemoryAllocationLib 51 51 BaseMemoryLib 52 52 53 53 [Guids] 54 54 gEfiStatusCodeDataTypeStringGuid ## SOMETIMES_CONSUMES ## UNDEFINED
Note:
See TracChangeset
for help on using the changeset viewer.