]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARC: Move cache global variables to arch_global_data
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Wed, 21 Mar 2018 12:58:57 +0000 (15:58 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Wed, 21 Mar 2018 14:06:54 +0000 (17:06 +0300)
commitbf8974eda40e7954a3f279fb54a95d938c0d3bba
treedf99ac679e20357ce80f52d67103b8c1e27115cc
parent75790873202f005e93085cc5ff5076bce0f5e84a
ARC: Move cache global variables to arch_global_data

There is a problem with current implementation if we start U-Boot
from ROM, as we use global variables before ther initialization,
so these variables get overwritten when we copy .data section
from ROM.

Instead we move these global variables into our "global data"
structure so that we may really start from ROM.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/global_data.h
arch/arc/lib/cache.c