Add EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event for MonotonicCounter driver.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1163 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2006-08-01 05:23:54 +00:00
parent 80301ad4fa
commit 2f23473f16
2 changed files with 52 additions and 14 deletions

View File

@ -33,7 +33,6 @@ EFI_HANDLE mMonotonicCounterHandle = NULL;
//
UINT64 mEfiMtc;
//
// Event to use to update the Mtc's high part when wrapping
//
@ -100,6 +99,42 @@ Returns:
return EFI_SUCCESS;
}
/**
Call back function on EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event.
Fixup internal data so that the driver is callable in EFI runtime
in virtual mode. Convert gRT to virtual address. gRT is from
UefiRuntimeServicesTableLib class. It is not fixed up by
UefiRuntimeServicesTableLib instance.
@param Event Event whose notification function is being invoked.
@param Context The context of the Notification context. Not used in
this call back function.
**/
VOID
EFIAPI
MonotonicCounterDriverSetVirtualAddressMap (
IN EFI_EVENT Event,
IN VOID *Context
)
/*++
Routine Description:
Arguments:
Returns:
--*/
{
gRT->ConvertPointer (0, (VOID **) &gRT);
}
EFI_STATUS
EFIAPI
MonotonicCounterDriverGetNextHighMonotonicCount (

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--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
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,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">
<MsaHeader>
@ -16,11 +16,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
<Abstract>Component description file for MonotonicCounter module.</Abstract>
<Description>This module Produced the Monotonic Counter Services as defined in the DXE CIS.</Description>
<Copyright>Copyright (c) 2006, Intel Corporation</Copyright>
<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
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,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
</MsaHeader>
@ -81,5 +81,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
<Extern>
<ModuleEntryPoint>MonotonicCounterDriverInitialize</ModuleEntryPoint>
</Extern>
<Extern>
<SetVirtualAddressMapCallBack>MonotonicCounterDriverSetVirtualAddressMap</SetVirtualAddressMapCallBack>
</Extern>
</Externs>
</ModuleSurfaceArea>
</ModuleSurfaceArea>