Make libpayload parse the coreboot tables before setting up the consoles

At least one of the console drivers, coreboot fb, uses information in the
sysinfo structure to set itself up. If that structure hasn't been populated,
the driver decides that there is no framebuffer and disables itself. Reversing
the order these are set up fixes that problem.

Change-Id: Idd8b5518980dfdd82fd4359dd0133ab7736fc428
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/816
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Gabe Black 2012-03-05 15:49:32 -08:00 committed by Patrick Georgi
parent cbb648c001
commit b9fa1ed5e8
1 changed files with 3 additions and 3 deletions

View File

@ -46,12 +46,12 @@ void start_main(void)
{
extern int main(int argc, char **argv);
/* Set up the consoles. */
console_init();
/* Gather system information. */
lib_get_sysinfo();
/* Set up the consoles. */
console_init();
/*
* Any other system init that has to happen before the
* user gets control goes here.