X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FRuntimeDxe%2FRuntime.c;h=8e4c75691273b4fce498a590e0d144715449623f;hb=53deb15e3a3d7180701585f280d0f952d19d44d9;hp=66c02b2f5b79716930b4e3ca12f2b9763824b18b;hpb=48557c6550adecf39e1e8e140b1736275d070dfb;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/RuntimeDxe/Runtime.c b/MdeModulePkg/Core/RuntimeDxe/Runtime.c index 66c02b2f5b..8e4c756912 100644 --- a/MdeModulePkg/Core/RuntimeDxe/Runtime.c +++ b/MdeModulePkg/Core/RuntimeDxe/Runtime.c @@ -35,8 +35,8 @@ Revision History: Table now contains an item named CalculateCrc32. -Copyright (c) 2006 - 2008, Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -275,11 +275,9 @@ RuntimeDriverSetVirtualAddressMap ( mVirtualMap = VirtualMap; // - // Currently the bug in StatusCode/RuntimeLib has been fixed, it will - // check whether in Runtime or not (this is judged by looking at - // mEfiAtRuntime global So this ReportStatusCode will work + // ReporstStatusCodeLib will check and make sure this service can be called in runtime mode. // - REPORT_STATUS_CODE (EFI_PROGRESS_CODE, PcdGet32 (PcdStatusCodeValueSetVirtualAddressMap)); + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_EFI_RUNTIME_SERVICE | EFI_SW_RS_PC_SET_VIRTUAL_ADDRESS_MAP)); // // Signal all the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE events. @@ -359,6 +357,10 @@ RuntimeDriverSetVirtualAddressMap ( // mVirtualMap = NULL; + // + // Report Status Code here since EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event was signalled. + // + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_VIRTUAL_ADDRESS_CHANGE_EVENT)); return EFI_SUCCESS; }