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: Ie376e394d084edd6c999fc9edde79f15a0264e7b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/222664
Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Furquan Shaikh 2014-10-09 15:59:12 -07:00 committed by chrome-internal-fetch
commit 688ef3856d

View file

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