aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-05-27 18:33:46 -0400
committerMike Frysinger <vapier@gentoo.org>2010-08-06 12:55:45 -0400
commit1ed181f248dbd26ee1bbbb1e7a61e94f875191ed (patch)
treece7750fe8b27c09f1cdcda5a12dfc6bb5b5516d6
parentd49e8e7e5a6ebc66906e24d7eed04ae0292fcb12 (diff)
Blackfin: move MPU anomaly check to common location
Keep all anomaly/arch checks in one place to keep logic simple. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--arch/blackfin/kernel/cplb-mpu/cplbinit.c4
-rw-r--r--arch/blackfin/mach-common/arch_checks.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/cplb-mpu/cplbinit.c b/arch/blackfin/kernel/cplb-mpu/cplbinit.c
index 30fd6417f069..c15fd05f0b09 100644
--- a/arch/blackfin/kernel/cplb-mpu/cplbinit.c
+++ b/arch/blackfin/kernel/cplb-mpu/cplbinit.c
@@ -13,10 +13,6 @@
13#include <asm/cplbinit.h> 13#include <asm/cplbinit.h>
14#include <asm/mem_map.h> 14#include <asm/mem_map.h>
15 15
16#if ANOMALY_05000263
17# error the MPU will not function safely while Anomaly 05000263 applies
18#endif
19
20struct cplb_entry icplb_tbl[NR_CPUS][MAX_CPLBS]; 16struct cplb_entry icplb_tbl[NR_CPUS][MAX_CPLBS];
21struct cplb_entry dcplb_tbl[NR_CPUS][MAX_CPLBS]; 17struct cplb_entry dcplb_tbl[NR_CPUS][MAX_CPLBS];
22 18
diff --git a/arch/blackfin/mach-common/arch_checks.c b/arch/blackfin/mach-common/arch_checks.c
index f2ca211a76a0..92a5c51a7f10 100644
--- a/arch/blackfin/mach-common/arch_checks.c
+++ b/arch/blackfin/mach-common/arch_checks.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Do some checking to make sure things are OK 2 * Do some checking to make sure things are OK
3 * 3 *
4 * Copyright 2007-2009 Analog Devices Inc. 4 * Copyright 2007-2010 Analog Devices Inc.
5 * 5 *
6 * Licensed under the GPL-2 or later. 6 * Licensed under the GPL-2 or later.
7 */ 7 */
@@ -47,6 +47,10 @@
47# error "The kernel load address is too high; keep it below 10meg for safety" 47# error "The kernel load address is too high; keep it below 10meg for safety"
48#endif 48#endif
49 49
50#if ANOMALY_05000263 && defined(CONFIG_MPU)
51# error the MPU will not function safely while Anomaly 05000263 applies
52#endif
53
50#if ANOMALY_05000448 54#if ANOMALY_05000448
51# error You are using a part with anomaly 05000448, this issue causes random memory read/write failures - that means random crashes. 55# error You are using a part with anomaly 05000448, this issue causes random memory read/write failures - that means random crashes.
52#endif 56#endif