Commit 06d1514e authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] fixes to ColdFire/5407 startup code

Correct the cache setup bits for the 5407. This enables the write
buffers properly (despite what the previous comment said). This
combined with fixed cache flushing code provides a nice performance
boost on the 5407.

Also fix the ROMfs setup to only move the ROMfs region if it is actually
configured.
parent 6106a23e
...@@ -99,10 +99,12 @@ _start: ...@@ -99,10 +99,12 @@ _start:
movec %d0, %ACR3 movec %d0, %ACR3
/* Enable cache */ /* Enable cache */
move.l #0xa4098400, %d0 /* Write buffer, dflt precise */ move.l #0xb6088400, %d0 /* Enable caches */
movec %d0,%CACR movec %d0,%CACR
nop nop
#ifdef CONFIG_ROMFS_FS
/* /*
* Move ROM filesystem above bss :-) * Move ROM filesystem above bss :-)
*/ */
...@@ -124,6 +126,12 @@ _copy_romfs: ...@@ -124,6 +126,12 @@ _copy_romfs:
cmp.l %a0, %a2 /* Check if at end */ cmp.l %a0, %a2 /* Check if at end */
bne _copy_romfs bne _copy_romfs
#else /* CONFIG_ROMFS_FS */
lea.l _ebss, %a1
move.l %a1, _ramstart
#endif /* CONFIG_ROMFS_FS */
/* /*
* Zero out the bss region. * Zero out the bss region.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment