[U-Boot] [PATCH] sunxi: Only compile board.o for CONFIG_SPL_BUILD

Ian Campbell ijc+uboot at hellion.org.uk
Wed Jan 21 09:58:30 CET 2015


On Tue, 2015-01-20 at 16:40 -0500, Tom Rini wrote:

In general the change looks good, thanks.

> -#if !defined CONFIG_SPL_BUILD && (defined CONFIG_MACH_SUN7I || \
> -		defined CONFIG_MACH_SUN6I || defined CONFIG_MACH_SUN8I)
> -	/* Enable SMP mode for CPU0, by setting bit 6 of Auxiliary Ctl reg */
> -	asm volatile(
> -		"mrc p15, 0, r0, c1, c0, 1\n"
> -		"orr r0, r0, #1 << 6\n"
> -		"mcr p15, 0, r0, c1, c0, 1\n");
> -#endif

Hans has an in flight patch which moves this elsewhere. But what's
confusing me is how it ever worked at all if this wasn't even being
compiled in. ACTLR.SMP is pretty critical to correct operation of the
SoC (cache coherency etc), at least once secondary processors are up...

Ian.



More information about the U-Boot mailing list