mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Don't cache flash.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2005-02-14 Eric Norum <norume@aps.anl.gov>
|
||||
|
||||
* startup/bspstart.c: Don't cache flash -- it messes up programming.
|
||||
|
||||
2005-02-04 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* console/console.c, include/bsp.h, network/network.c,
|
||||
|
||||
@@ -199,17 +199,13 @@ void bsp_start( void )
|
||||
m68k_set_cacr(MCF5XXX_CACR_CINV);
|
||||
|
||||
/*
|
||||
* Cache SDRAM and FLASH
|
||||
* Cache SDRAM
|
||||
*/
|
||||
m68k_set_acr0(MCF5XXX_ACR_AB((uint32_t)_RamBase) |
|
||||
MCF5XXX_ACR_AM((uint32_t)_RamSize-1) |
|
||||
MCF5XXX_ACR_EN |
|
||||
MCF5XXX_ACR_BWE |
|
||||
MCF5XXX_ACR_SM_IGNORE);
|
||||
m68k_set_acr1(MCF5XXX_ACR_AB((uint32_t)_FlashBase) |
|
||||
MCF5XXX_ACR_AM((uint32_t)_FlashSize-1) |
|
||||
MCF5XXX_ACR_EN |
|
||||
MCF5XXX_ACR_SM_IGNORE);
|
||||
|
||||
/*
|
||||
* Enable the cache
|
||||
|
||||
Reference in New Issue
Block a user