summaryrefslogtreecommitdiffstats
path: root/ArmPkg/ArmPkg.dsc
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@arm.com>2020-05-19 14:23:51 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-06-03 14:04:59 +0000
commit7191dd3c5990416cf473ce36b3fb84ecb2f7b950 (patch)
tree29848d8269a2b0a113b0f168b3a3dec95952f4fb /ArmPkg/ArmPkg.dsc
parentb1d3895fb97fa8b387739eb4600c6a0b820e4ec0 (diff)
downloadedk2-7191dd3c5990416cf473ce36b3fb84ecb2f7b950.tar.gz
edk2-7191dd3c5990416cf473ce36b3fb84ecb2f7b950.tar.bz2
edk2-7191dd3c5990416cf473ce36b3fb84ecb2f7b950.zip
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>
Diffstat (limited to 'ArmPkg/ArmPkg.dsc')
0 files changed, 0 insertions, 0 deletions