浏览代码

ColdFire: MCF5329 update cache

Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
TsiChungLiew 17 年之前
父节点
当前提交
f52e78304d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cpu/mcf532x/start.S

+ 1 - 1
cpu/mcf532x/start.S

@@ -268,7 +268,7 @@ _int_handler:
 icache_enable:
 	move.l	#0x01000000, %d0		/* Invalidate cache cmd */
 	movec	%d0, %CACR			/* Invalidate cache */
-	move.l	#(CFG_SDRAM_BASE + 0xc000), %d0	/* Setup cache mask */
+	move.l	#(CFG_SDRAM_BASE + 0xc000 + ((CFG_SDRAM_SIZE & 0x1fe0) << 11)), %d0
 	movec	%d0, %ACR0			/* Enable cache */
 
 	move.l	#0x80000200, %d0		/* Setup cache mask */