libpayload arm64: Move console_init after post_sysinfo_mmu_setup call

This is important since mmu is disabled during the post_sysinfo_mmu_setup call
and calling printf can cause unaligned access.

BUG=None
BRANCH=None
TEST=Compiles successfully and boots to kernel prompt with console_init

Change-Id: I5ef72ee449fdcf30186f97485cc532d6c56b2c5d
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 688ef3856d0502d057c9543ee7763601156e6385
Original-Change-Id: Ie376e394d084edd6c999fc9edde79f15a0264e7b
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/222664
Original-Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8795
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Furquan Shaikh 2014-10-09 15:59:12 -07:00 committed by Patrick Georgi
parent 698562353b
commit 8a01eb6052
1 changed files with 2 additions and 2 deletions

View File

@ -121,12 +121,12 @@ void start_main(void)
/* Gather system information. */ /* Gather system information. */
lib_get_sysinfo(); lib_get_sysinfo();
post_sysinfo_scan_mmu_setup();
#ifndef CONFIG_LP_SKIP_CONSOLE_INIT #ifndef CONFIG_LP_SKIP_CONSOLE_INIT
console_init(); console_init();
#endif #endif
post_sysinfo_scan_mmu_setup();
printf("ARM64: Libpayload %s\n",__func__); printf("ARM64: Libpayload %s\n",__func__);
exception_init(); exception_init();