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>
- // Setup the setters and getters\r
- gRT->GetTime = LibGetTime;\r
- gRT->SetTime = LibSetTime;\r
- gRT->GetWakeupTime = LibGetWakeupTime;\r
- gRT->SetWakeupTime = LibSetWakeupTime;\r
-\r
mRT = gRT;\r
\r
// Install the protocol\r
mRT = gRT;\r
\r
// Install the protocol\r