Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12125
b: refs/heads/master
c: 4f4ef29
h: refs/heads/master
i:
  12123: 3a9bb50
v: v3
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Nov 2, 2005
1 parent 852ae11 commit 2db103d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7354b62cf799d91e69e38603a139a79df48b23d9
refs/heads/master: 4f4ef2967e1e8dce43e9cf7186aeb60a8c33aaf4
14 changes: 14 additions & 0 deletions trunk/include/asm-m68knommu/mcfcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@
.endm
#endif /* CONFIG_M5407 */

#if defined(CONFIG_M520x)
.macro CACHE_ENABLE
move.l #0x01000000,%d0 /* invalidate whole cache */
movec %d0,%CACR
nop
move.l #0x0000c000,%d0 /* set SDRAM cached (write-thru) */
movec %d0,%ACR0
move.l #0x00000000,%d0 /* no other regions cached */
movec %d0,%ACR1
move.l #0x80400000,%d0 /* enable 8K instruction cache */
movec %d0,%CACR
nop
.endm
#endif /* CONFIG_M520x */

/****************************************************************************/
#endif /* __M68KNOMMU_MCFCACHE_H */

0 comments on commit 2db103d

Please sign in to comment.