[uClinux-dev] [PATCH] m68knommu: do not request separate stack pointers on m5407

Philippe De Muyter phdm at macqel.be
Fri Nov 5 05:01:13 EDT 2010


from MCF5407 ColdFire User’s Manual :
	[bits 7-0] must be cleared; otherwise, performance may be affected.

Signed-off-by: Philippe De Muyter <phdm at macqel.be>
---
 arch/m68k/include/asm/m54xxacr.h |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/include/asm/m54xxacr.h b/arch/m68k/include/asm/m54xxacr.h
index 27cd530..259fa8d 100644
--- a/arch/m68k/include/asm/m54xxacr.h
+++ b/arch/m68k/include/asm/m54xxacr.h
@@ -26,7 +26,7 @@
 #define CACR_IHLCK	0x00000800	/* Intruction cache half lock */
 #define CACR_IDCM	0x00000400	/* Intruction cache inhibit */
 #define CACR_ICINVA	0x00000100	/* Invalidate instr cache */
-#define	CACR_EUSP	0x00000020	/* Enable separate user a7 */
+#define CACR_EUSP	0x00000020	/* Enable separate user a7 */
 
 #define ACR_BASE_POS	24		/* Address Base */
 #define ACR_MASK_POS	16		/* Address Mask */
@@ -45,6 +45,13 @@
 
 #define ICACHE_SIZE 0x4000	/* instruction - 16k */
 #define DCACHE_SIZE 0x2000	/* data - 8k */
+#undef CACR_EUSP		/* not available on 5407 */
+	/*
+	 * from MCF5407 ColdFire User’s Manual :
+	 *	bits 7-0 must be cleared; otherwise,
+	 *	performance may be affected.
+	 */
+#define CACR_EUSP	0
 
 #elif defined(CONFIG_M54xx)
 
-- 
1.7.1




More information about the uClinux-dev mailing list