]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: fix #if around spin-table code in start.S
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 27 Dec 2016 09:19:43 +0000 (11:19 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 14 Jan 2017 21:46:27 +0000 (16:46 -0500)
Using CONFIG_IS_ENABLED() doesn't work in SPL. This patch replaces the only
occurrence of CONFIG_IS_ENABLED() in start.S to a regular #if defined().
It also adds "&& !defined(CONFIG_SPL_BUILD)" to that #if statement because
the spin-table code can't currently work in SPL, and the spin-table file
isn't even compiled in SPL.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
arch/arm/cpu/armv8/start.S

index 140609de089294594fad647beea8a2dc8996ad1f..953505735523d07a9c251b0d269502056b881645 100644 (file)
@@ -98,7 +98,7 @@ save_boot_params_ret:
        /* Processor specific initialization */
        bl      lowlevel_init
 
-#if CONFIG_IS_ENABLED(ARMV8_SPIN_TABLE)
+#if defined(CONFIG_ARMV8_SPIN_TABLE) && !defined(CONFIG_SPL_BUILD)
        branch_if_master x0, x1, master_cpu
        b       spin_table_secondary_jump
        /* never return */