summaryrefslogtreecommitdiff
path: root/Platform/RaspberryPi/RPi3
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-11-26 10:57:32 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2019-11-26 17:03:56 +0000
commite9db04631b63574b090aeab769cc47dcb75a29f7 (patch)
tree1566e9ef3d5b9f78814ae91fbd6941c850514195 /Platform/RaspberryPi/RPi3
parent0d076ec2a233dbb5947f1291833819ea631744c6 (diff)
Platform/RPi3: Disable DEBUG output at runtime for the RTC driver
Using DEBUG () at runtime can crash the OS if we don't take care to inhibit serial output to MMIO mapped UARTs that we don't inform the OS about via the memory map. So use a version of DebugLib that does exactly that for the RTC driver. Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/RaspberryPi/RPi3')
-rw-r--r--Platform/RaspberryPi/RPi3/RPi3.dsc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3/RPi3.dsc
index 98c75e37..8ec82fc6 100644
--- a/Platform/RaspberryPi/RPi3/RPi3.dsc
+++ b/Platform/RaspberryPi/RPi3/RPi3.dsc
@@ -505,6 +505,7 @@
EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
<LibraryClasses>
+ DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
}
EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf