[PATCH] ARM: zImage: add DSB and ISB barriers after relocating code
Nicolas Pitre
nicolas.pitre at linaro.org
Fri Jul 18 11:08:12 PDT 2014
On Fri, 18 Jul 2014, Marc C wrote:
> Hi Dave,
>
> My apologies for not addressing this prior to submitting my v2 of the patch.
>
> > How is what we're trying to achieve here different from the operation
> > that needs to be done in between decompressing the kernel and jumping
> > to it? Can't we just call cache_clean_flush?
> >
> > Except that a possibly-redundant flush of the D-cache will be done,
> > this should do exactly the right thing.
>
> I agree - I don't see why we can't just perform a cache_clean_flush
> prior to jumping to the relocated code. It seems like a simpler and less
> error-prone solution.
Agreed.
Nicolas
More information about the linux-arm-kernel
mailing list