diff options
| author | Greg Ungerer <gerg@snapgear.com> | 2004-02-18 06:15:10 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 06:15:10 -0800 |
| commit | 06d1514e85d1e5161a3e081880bc2e9244fe7e8a (patch) | |
| tree | 4721721e6eaf59fecfe8d23c4d4519cf9d808acd | |
| parent | 6106a23e9a6f6275680168f2037502362355d2aa (diff) | |
[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.
| -rw-r--r-- | arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.S | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.S b/arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.S index 38c2b6d5592a..05a899df369e 100644 --- a/arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.S +++ b/arch/m68knommu/platform/5407/MOTOROLA/crt0_ram.S @@ -99,10 +99,12 @@ _start: movec %d0, %ACR3 /* Enable cache */ - move.l #0xa4098400, %d0 /* Write buffer, dflt precise */ + move.l #0xb6088400, %d0 /* Enable caches */ movec %d0,%CACR nop + +#ifdef CONFIG_ROMFS_FS /* * Move ROM filesystem above bss :-) */ @@ -124,6 +126,12 @@ _copy_romfs: cmp.l %a0, %a2 /* Check if at end */ bne _copy_romfs +#else /* CONFIG_ROMFS_FS */ + lea.l _ebss, %a1 + move.l %a1, _ramstart +#endif /* CONFIG_ROMFS_FS */ + + /* * Zero out the bss region. */ |
