* [PATCH]: fix CACHE_ENABLE macro on mcf532x platform
@ 2009-07-30 9:29 Lanttor
2009-07-30 21:23 ` lanttor.g
0 siblings, 1 reply; 2+ messages in thread
From: Lanttor @ 2009-07-30 9:29 UTC (permalink / raw)
To: Jin Zhengxiong-R64188; +Cc: uClinux development list, linux-m68k
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
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
[-- Attachment #2: 0001-Modify-the-CACHE_ENABLE-macro-on-mcf5329-platform.patch --]
[-- Type: text/x-diff, Size: 1221 bytes --]
>From 042e0e34bd5a293383e480955df2fecf0770b54f Mon Sep 17 00:00:00 2001
From: Lanttor Guo <lanttor.guo@freescale.com>
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@freescale.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-30 21:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 9:29 [PATCH]: fix CACHE_ENABLE macro on mcf532x platform Lanttor
2009-07-30 21:23 ` lanttor.g
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox