u-boot-brain/arch
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
..
arc arc: check caches existence before use 2015-01-15 22:38:42 +03:00
arm ARM: armv8: Fix typo in commentary 2015-01-14 11:37:39 -05:00
avr32 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
blackfin blackfin: include <linux/compiler.h> rather than define __iomem 2014-12-08 09:35:46 -05:00
m68k m68k: remove TASREG board 2015-01-13 09:37:21 -05:00
microblaze Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
mips Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
nds32 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
nios2 Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
openrisc Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
powerpc ppc4xx: remove some CPCI405 variants 2015-01-13 09:37:25 -05:00
sandbox dm: i2c: dts: Add an I2C bus for sandbox 2014-12-11 13:18:43 -07:00
sh Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
sparc Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00
x86 x86: coreboot: Configure pci memory regions 2015-01-13 07:25:05 -08:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig kconfig: move CONFIG_USE_PRIVATE_LIBGCC to Kconfig 2014-10-23 13:19:09 -04:00