]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event for MonotonicCounter driver.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Aug 2006 05:23:54 +0000 (05:23 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Aug 2006 05:23:54 +0000 (05:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1163 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Universal/MonotonicCounter/RuntimeDxe/MonotonicCounter.c
EdkModulePkg/Universal/MonotonicCounter/RuntimeDxe/MonotonicCounter.msa

index 6e4350f0ed1abff7e1f60427b9a8506420ca2bbd..4a79e54a00fffc90d4cb1ce627b6a428723d9cb7 100644 (file)
@@ -33,7 +33,6 @@ EFI_HANDLE  mMonotonicCounterHandle = NULL;
 //\r
 UINT64      mEfiMtc;\r
 \r
-\r
 //\r
 // Event to use to update the Mtc's high part when wrapping\r
 //\r
@@ -100,6 +99,42 @@ Returns:
   return EFI_SUCCESS;\r
 }\r
 \r
+\r
+\r
+/**\r
+  Call back function on EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event.\r
+\r
+  Fixup internal data so that the driver is callable in EFI  runtime \r
+  in virtual mode. Convert gRT to virtual address. gRT is from \r
+  UefiRuntimeServicesTableLib class. It is not fixed up by \r
+  UefiRuntimeServicesTableLib instance.\r
+\r
+  @param  Event     Event whose notification function is being invoked.\r
+  @param  Context   The context of the Notification context. Not used in\r
+                    this call back function.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+MonotonicCounterDriverSetVirtualAddressMap (\r
+  IN EFI_EVENT  Event,\r
+  IN VOID       *Context\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+Arguments:\r
+\r
+Returns:\r
+\r
+--*/\r
+{\r
+  gRT->ConvertPointer (0, (VOID **) &gRT);\r
+}\r
+\r
+\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 MonotonicCounterDriverGetNextHighMonotonicCount (\r
index 1fad33cc61481e60846929993156e94869803af1..de62a4b8c998e5a884d33f1c3e4b0c4e099b2e09 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
-<!--Copyright (c) 2006, 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
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+<!--Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
 <ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">\r
   <MsaHeader>\r
@@ -16,11 +16,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <Abstract>Component description file for MonotonicCounter module.</Abstract>\r
     <Description>This module Produced the Monotonic Counter Services as defined in the DXE CIS.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
-    <License>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
-      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+    <License>All rights reserved. This program and the accompanying materials\r
+      are licensed and made available under the terms and conditions of the BSD License\r
+      which accompanies this distribution.  The full text of the license may be found at\r
+      http://opensource.org/licenses/bsd-license.php\r
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
       WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
     <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
   </MsaHeader>\r
@@ -81,5 +81,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <Extern>\r
       <ModuleEntryPoint>MonotonicCounterDriverInitialize</ModuleEntryPoint>\r
     </Extern>\r
+    <Extern>\r
+      <SetVirtualAddressMapCallBack>MonotonicCounterDriverSetVirtualAddressMap</SetVirtualAddressMapCallBack>\r
+    </Extern>\r
   </Externs>\r
-</ModuleSurfaceArea>
\ No newline at end of file
+</ModuleSurfaceArea>\r