[PATCH]: fix CACHE_ENABLE macro on mcf532x platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch is to fix CACHE_ENABLE macro on the mcf532x platform, which
is defined in the file: arch/m68k/include/asm/mcfcache.h.
This patch is based on Linus' current git tree.

Thanks,

-- 
Best Regards,
Lanttor


From 042e0e34bd5a293383e480955df2fecf0770b54f Mon Sep 17 00:00:00 2001
From: Lanttor Guo <lanttor.guo@xxxxxxxxxxxxx>
Date: Thu, 30 Jul 2009 16:58:41 +0800
Subject: [PATCH] Modify the CACHE_ENABLE macro on mcf5329 platform

Setting ACR0[ADDR_MASK] correctly.

For a given request address, if the ACR is valid and the
request mode matches the mode specified in the supervisor
mode field(ACRn[S]), hit determination is specified as:

ACRx_hit = 0;
if ((address[31:24] & ~ACRn[23:16]) == (ACRn[31:24] & ~ACRn[23:16]))
	ACRx_hit = 1;

Signed-off-by: Lanttor Guo <lanttor.guo@xxxxxxxxxxxxx>
---
 arch/m68k/include/asm/mcfcache.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/include/asm/mcfcache.h b/arch/m68k/include/asm/mcfcache.h
index c042634..dc8c14c 100644
--- a/arch/m68k/include/asm/mcfcache.h
+++ b/arch/m68k/include/asm/mcfcache.h
@@ -97,7 +97,7 @@
 	movel	#0x01000000,%d0		/* invalidate cache cmd */
 	movec	%d0,%CACR		/* do invalidate cache */
 	nop
-	movel	#0x4001C000,%d0		/* set SDRAM cached (write-thru) */
+	movel	#0x400FC000,%d0		/* set SDRAM cached (write-thru) */
 	movec	%d0,%ACR0
 	movel	#0x00000000,%d0		/* no other regions cached */
 	movec	%d0,%ACR1
-- 
1.6.3.2


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux