Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe
- Timestamp:
- Sep 11, 2019 8:46:37 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133262
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
r77662 r80721 2 2 Reset Architectural and Reset Notification protocols implementation. 3 3 4 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> 5 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 4 Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> 5 6 SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 14 8 **/ … … 188 182 // Hook the runtime service table 189 183 // 190 gRT->ResetSystem = R esetSystem;184 gRT->ResetSystem = RuntimeServiceResetSystem; 191 185 192 186 // … … 208 202 209 203 /** 210 Put the system into S3 power state.211 **/212 VOID213 DoS3 (214 VOID215 )216 {217 EnterS3WithImmediateWake ();218 219 //220 // Should not return221 //222 CpuDeadLoop ();223 }224 225 /**226 204 Resets the entire platform. 227 205 … … 233 211 string, optionally followed by additional binary data. 234 212 The string is a description that the caller may use to further 235 indicate the reason for the system reset. ResetData is only 236 valid if ResetStatus is something other than EFI_SUCCESS 237 unless the ResetType is EfiResetPlatformSpecific 238 where a minimum amount of ResetData is always required. 213 indicate the reason for the system reset. 239 214 For a ResetType of EfiResetPlatformSpecific the data buffer 240 215 also starts with a Null-terminated string that is followed … … 243 218 VOID 244 219 EFIAPI 245 R esetSystem (220 RuntimeServiceResetSystem ( 246 221 IN EFI_RESET_TYPE ResetType, 247 222 IN EFI_STATUS ResetStatus, … … 250 225 ) 251 226 { 252 EFI_STATUS Status;253 UINTN Size;254 UINTN CapsuleDataPtr;255 227 LIST_ENTRY *Link; 256 228 RESET_NOTIFY_ENTRY *Entry; 257 229 258 230 // 259 // Only do REPORT_STATUS_CODE() on first call to R esetSystem()231 // Only do REPORT_STATUS_CODE() on first call to RuntimeServiceResetSystem() 260 232 // 261 233 if (mResetNotifyDepth == 0) { … … 316 288 case EfiResetWarm: 317 289 318 //319 //Check if there are pending capsules to process320 //321 Size = sizeof (CapsuleDataPtr);322 Status = EfiGetVariable (323 EFI_CAPSULE_VARIABLE_NAME,324 &gEfiCapsuleVendorGuid,325 NULL,326 &Size,327 (VOID *) &CapsuleDataPtr328 );329 330 if (Status == EFI_SUCCESS) {331 //332 //Process capsules across a system reset.333 //334 DoS3();335 }336 337 290 ResetWarm (); 338 291 break; -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.h
r77662 r80721 1 1 /** @file 2 2 3 Copyright (c) 2006 - 201 7, Intel Corporation. All rights reserved.<BR>3 Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> 4 4 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 SPDX-License-Identifier: BSD-2-Clause-Patent 12 6 13 7 **/ … … 28 22 #include <Library/DebugLib.h> 29 23 #include <Library/UefiLib.h> 30 #include <Library/IoLib.h>31 24 #include <Library/UefiDriverEntryPoint.h> 32 25 #include <Library/UefiBootServicesTableLib.h> … … 88 81 string, optionally followed by additional binary data. 89 82 The string is a description that the caller may use to further 90 indicate the reason for the system reset. ResetData is only 91 valid if ResetStatus is something other than EFI_SUCCESS 92 unless the ResetType is EfiResetPlatformSpecific 93 where a minimum amount of ResetData is always required. 83 indicate the reason for the system reset. 94 84 For a ResetType of EfiResetPlatformSpecific the data buffer 95 85 also starts with a Null-terminated string that is followed … … 99 89 VOID 100 90 EFIAPI 101 R esetSystem (91 RuntimeServiceResetSystem ( 102 92 IN EFI_RESET_TYPE ResetType, 103 93 IN EFI_STATUS ResetStatus, -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
r77662 r80721 4 4 # Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> 5 5 # 6 # This program and the accompanying materials are 7 # licensed and made available under the terms and conditions of the BSD License 8 # which accompanies this distribution. The full text of the license may be found at 9 # http://opensource.org/licenses/bsd-license.php 10 # 11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 # SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 # 14 8 ## … … 44 38 UefiBootServicesTableLib 45 39 UefiDriverEntryPoint 46 IoLib47 40 UefiLib 48 41 DebugLib -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.uni
r77662 r80721 2 2 // This driver implements Reset Architectural and Reset Notification protocols. 3 3 // 4 // Copyright (c) 2006 - 201 7, Intel Corporation. All rights reserved.<BR>4 // Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> 5 5 // 6 // This program and the accompanying materials are 7 // licensed and made available under the terms and conditions of the BSD License 8 // which accompanies this distribution. The full text of the license may be found at 9 // http://opensource.org/licenses/bsd-license.php 10 // 11 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 // SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 // 14 8 // **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxeExtra.uni
r77662 r80721 2 2 // ResetSystemRuntimeDxe Localized Strings and Content 3 3 // 4 // Copyright (c) 2013 - 201 4, Intel Corporation. All rights reserved.<BR>4 // Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> 5 5 // 6 // This program and the accompanying materials are 7 // licensed and made available under the terms and conditions of the BSD License 8 // which accompanies this distribution. The full text of the license may be found at 9 // http://opensource.org/licenses/bsd-license.php 10 // 11 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 // SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 // 14 8 // **/ 15 9 16 #string STR_PROPERTIES_MODULE_NAME 17 #language en-US 10 #string STR_PROPERTIES_MODULE_NAME 11 #language en-US 18 12 "Reset System DXE Driver" 19 13
Note:
See TracChangeset
for help on using the changeset viewer.