diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-13 10:04:24 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-05-11 16:57:09 +0200 |
commit | 3ad72779aa97fcde5262b072edc69967da3bdc82 (patch) | |
tree | acd14bf95e460d0f809831c00b989c7efb8b4feb /ArmPlatformPkg/Library/PL031RealTimeClockLib | |
parent | 6336850c910f72dc1ff2ec1436e0c3b8a2f5443a (diff) | |
download | edk2-3ad72779aa97fcde5262b072edc69967da3bdc82.tar.gz edk2-3ad72779aa97fcde5262b072edc69967da3bdc82.tar.bz2 edk2-3ad72779aa97fcde5262b072edc69967da3bdc82.zip |
ArmPlatformPkg/PL031RealTimeClockLib: don't clobber gRT table
PL031RealTimeClockLib is a base library that could potentially (although
unlikely) be incorporated into other modules than the DXE_RUNTIME_DRIVER
module that it was intended to complement.
This means the library has no business whatsoever setting the Runtime
Service table pointers directly (since we have no way of knowing which
instance will 'win', and the pointers may end up referring to a module
that is not a DXE_RUNTIME_DRIVER). So remove the assignment altogether.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg/Library/PL031RealTimeClockLib')
-rw-r--r-- | ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c index 52ba48992b..516b45675c 100644 --- a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c +++ b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c @@ -650,12 +650,6 @@ LibRtcInitialize ( return Status;
}
- // Setup the setters and getters
- gRT->GetTime = LibGetTime;
- gRT->SetTime = LibSetTime;
- gRT->GetWakeupTime = LibGetWakeupTime;
- gRT->SetWakeupTime = LibSetWakeupTime;
-
mRT = gRT;
// Install the protocol
|