u-boot-brain/arch/arc/include/asm
Igor Guryanov f8cf3d1ebd arc: check caches existence before use
Some cache operations ({i|d}cache_{enable|disable|status} or
flush_dcache_all) are built and used even if CONFIG_SYS_{I|D}CACHE_OFF
is set.

This is required for force disable of caches on early boot.
What if something was executed before U-boot and enabled caches
(low-level bootloaders, previously run kernel etc.)?

But if CPU doesn't really have caches any attempt to access
cache-related AUX registers triggers instruction error exception.

So for convenience we'll try to avoid exceptions by checking if CPU
actually has caches (we check separately data and instruction cache
existence) at all.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Igor Guryanov <guryanov@synopsys.com>
2015-01-15 22:38:42 +03:00
..
arcregs.h arc: check caches existence before use 2015-01-15 22:38:42 +03:00
bitops.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
byteorder.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
cache.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
config.h ARC: enable CONFIG_SYS_BOOT_RAMDISK_HIGH 2014-06-03 16:16:57 +04:00
errno.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
global_data.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
io.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
posix_types.h arc: Fix printf size_t format related warnings (again...) 2014-08-26 17:41:58 +04:00
ptrace.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
sections.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
string.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
types.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
u-boot-arc.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
u-boot.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
unaligned.h arc: add architecture header files 2014-02-07 08:14:32 -05:00