audk/ArmPkg/Library
Ard Biesheuvel 7191dd3c59 ArmPkg/PlatformBootManagerLib: reject 'default' parity and stop bit count
In the ArmPkg version of PlatformBootManagerLib, we construct a
serial device path based on the default settings for baud rate,
parity and the number of stop bits, to ensure that a serial console
is available even on the very first boot.

This assumes that PcdUartDefaultParity or PcdUartDefaultStopBits are
not set to '0', meaning 'the default', as there is no default for
these when constructing a device path.

So add a couple of STATIC_ASSERT()s to make sure that we catch this
condition, since it otherwise ignores the bogus device path silently,
which is rather tedious to debug,.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Sami Mujawar <Sami.Mujawar@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2020-06-03 14:04:59 +00:00
..
ArmArchTimerLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
ArmCacheMaintenanceLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmDisassemblerLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
ArmExceptionLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
ArmGenericTimerPhyCounterLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmGenericTimerVirtCounterLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmGicArchLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmGicArchSecLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmHvcLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmLib ArmPkg/ArmLib: Fix cache-invalidate initial page tables 2020-03-19 17:35:32 +00:00
ArmMmuLib ArmPkg/ArmMmuLib: drop unused TT_ATTR_INDX_INVALID CPP macro 2020-04-02 12:35:52 +00:00
ArmMtlNullLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmPsciResetSystemLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmSmcLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmSmcLibNull ArmPkg: convert LFs to CRLF, expand hard TABs 2020-03-04 12:22:07 +00:00
ArmSmcPsciResetSystemLib ArmPkg/ArmSmcPsciResetSystemLib: remove EnterS3WithImmediateWake () 2020-01-14 22:12:17 +00:00
ArmSoftFloatLib ArmPkg: convert LFs to CRLF, expand hard TABs 2020-03-04 12:22:07 +00:00
ArmSvcLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
CompilerIntrinsicsLib ArmPkg/CompilerIntrinsicsLib: provide atomics intrinsics 2020-06-02 07:05:21 +00:00
DebugAgentSymbolsBaseLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
DebugPeCoffExtraActionLib ArmPkg: DebugPeCoffExtraActionLib: fix trivial comment typos 2019-07-30 14:58:17 +01:00
DefaultExceptionHandlerLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
GccLto ArmPkg: convert LFs to CRLF, expand hard TABs 2020-03-04 12:22:07 +00:00
OpteeLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
PeiServicesTablePointerLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
PlatformBootManagerLib ArmPkg/PlatformBootManagerLib: reject 'default' parity and stop bit count 2020-06-03 14:04:59 +00:00
RvdPeCoffExtraActionLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
SemiHostingDebugLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
SemiHostingSerialPortLib ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
SemihostLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
StandaloneMmMmuLib ArmPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00