Clean up CACR initialization.

This commit is contained in:
Vincent Rivière
2012-10-20 14:00:11 +00:00
parent f42078c70b
commit f56e5efee7
5 changed files with 7 additions and 24 deletions

View File

@@ -33,10 +33,14 @@ warmstart:
/* set stack pointer to end of SRAM1 */
lea __SUP_SP,a7
/* instruction cache on */
move.l #0x000C8100,d0
/* Initialize the processor caches.
* The instruction cache is fully enabled.
* The data cache is enabled, but cache-inhibited by default.
* Later, the MMU will fully activate the data cache for specific areas.
* It is important to enable both caches now, otherwise cpushl would hang.
*/
move.l #0xa50c8120,d0
movec d0,cacr
nop
/* initialize any hardware specific issues */
bra _initialize_hardware