···16161717cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__18181919-LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h2020-2119ifdef CONFIG_ARC_CURR_IN_REG2220# For a global register defintion, make sure it gets passed to every file2321# We had a customer reported bug where some code built in kernel was NOT using2422# any kernel headers, and missing the r25 global register2525-# Can't do unconditionally (like above) because of recursive include issues2323+# Can't do unconditionally because of recursive include issues2624# due to <linux/thread_info.h>2725LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h2826endif
+2
arch/arc/include/asm/cache.h
···99#ifndef __ARC_ASM_CACHE_H1010#define __ARC_ASM_CACHE_H11111212+#include <asm/mmu.h> /* some of cache registers depend on MMU ver */1313+1214/* In case $$ not config, setup a dummy number for rest of kernel */1315#ifndef CONFIG_ARC_CACHE_LINE_SHIFT1416#define L1_CACHE_SHIFT 6
-56
arch/arc/include/asm/defines.h
···11-/*22- * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)33- *44- * This program is free software; you can redistribute it and/or modify55- * it under the terms of the GNU General Public License version 2 as66- * published by the Free Software Foundation.77- */88-99-#ifndef __ARC_ASM_DEFINES_H__1010-#define __ARC_ASM_DEFINES_H__1111-1212-#if defined(CONFIG_ARC_MMU_V1)1313-#define CONFIG_ARC_MMU_VER 11414-#elif defined(CONFIG_ARC_MMU_V2)1515-#define CONFIG_ARC_MMU_VER 21616-#elif defined(CONFIG_ARC_MMU_V3)1717-#define CONFIG_ARC_MMU_VER 31818-#endif1919-2020-#ifdef CONFIG_ARC_HAS_LLSC2121-#define __CONFIG_ARC_HAS_LLSC_VAL 12222-#else2323-#define __CONFIG_ARC_HAS_LLSC_VAL 02424-#endif2525-2626-#ifdef CONFIG_ARC_HAS_SWAPE2727-#define __CONFIG_ARC_HAS_SWAPE_VAL 12828-#else2929-#define __CONFIG_ARC_HAS_SWAPE_VAL 03030-#endif3131-3232-#ifdef CONFIG_ARC_HAS_RTSC3333-#define __CONFIG_ARC_HAS_RTSC_VAL 13434-#else3535-#define __CONFIG_ARC_HAS_RTSC_VAL 03636-#endif3737-3838-#ifdef CONFIG_ARC_MMU_SASID3939-#define __CONFIG_ARC_MMU_SASID_VAL 14040-#else4141-#define __CONFIG_ARC_MMU_SASID_VAL 04242-#endif4343-4444-#ifdef CONFIG_ARC_HAS_ICACHE4545-#define __CONFIG_ARC_HAS_ICACHE 14646-#else4747-#define __CONFIG_ARC_HAS_ICACHE 04848-#endif4949-5050-#ifdef CONFIG_ARC_HAS_DCACHE5151-#define __CONFIG_ARC_HAS_DCACHE 15252-#else5353-#define __CONFIG_ARC_HAS_DCACHE 05454-#endif5555-5656-#endif /* __ARC_ASM_DEFINES_H__ */