summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Bds
diff options
context:
space:
mode:
authorSupreeth Venkatesh <supreeth.venkatesh@arm.com>2016-02-08 15:33:30 -0600
committerLeif Lindholm <leif.lindholm@linaro.org>2016-02-09 18:23:57 +0000
commit776086ce307b1c3dd8b694f16e784370a02a529c (patch)
tree864efd5cad0217fa5ea23866271c5c4902a046c9 /ArmPlatformPkg/Bds
parent8afe7c9ae565f3369b8fa46af70ccb7c2f05ce01 (diff)
downloadedk2-776086ce307b1c3dd8b694f16e784370a02a529c.zip
edk2-776086ce307b1c3dd8b694f16e784370a02a529c.tar.gz
edk2-776086ce307b1c3dd8b694f16e784370a02a529c.tar.bz2
ArmPlatformPkg/Bds: Early Console Initialization
Setup the EFI System Table with information about the Console Devices early, so that error messages in bds are printed on the console earlier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg/Bds')
-rw-r--r--ArmPlatformPkg/Bds/Bds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmPlatformPkg/Bds/Bds.c b/ArmPlatformPkg/Bds/Bds.c
index 3ee866c..4cea3cd 100644
--- a/ArmPlatformPkg/Bds/Bds.c
+++ b/ArmPlatformPkg/Bds/Bds.c
@@ -479,6 +479,9 @@ BdsEntry (
Status = gBS->CalculateCrc32 ((VOID*)gST, gST->Hdr.HeaderSize, &gST->Hdr.CRC32);
ASSERT_EFI_ERROR (Status);
+ // Now we need to setup the EFI System Table with information about the console devices.
+ InitializeConsole ();
+
// If BootNext environment variable is defined then we just load it !
BootNextSize = sizeof(UINT16);
Status = GetGlobalEnvironmentVariable (L"BootNext", NULL, &BootNextSize, (VOID**)&BootNext);
@@ -518,9 +521,6 @@ BdsEntry (
// If Boot Order does not exist then create a default entry
DefineDefaultBootEntries ();
- // Now we need to setup the EFI System Table with information about the console devices.
- InitializeConsole ();
-
//
// Update the CRC32 in the EFI System Table header
//