Fix FireTOS booting

For some reason which I coudn't figure it out FireTOS
fails to boot randomly when we turn on the MMU before
the IDE ports are initialized (FireTOS doesn't detect
the IDE devices). This is fixed when we turn on the MMU
after the IDE initialization. CodeWarrior BaS does it
this way too.
This commit is contained in:
David Gálvez
2018-12-14 11:28:18 +01:00
committed by Markus
parent 025e8c9a28
commit 0982b91c87

View File

@@ -452,11 +452,6 @@ void BaS(void)
flush_and_invalidate_caches(); flush_and_invalidate_caches();
xprintf("finished\r\n"); xprintf("finished\r\n");
xprintf("enable MMU: ");
MCF_MMU_MMUCR = MCF_MMU_MMUCR_EN; /* MMU on */
NOP(); /* force pipeline sync */
xprintf("finished\r\n");
xprintf("initialize exception vector table: "); xprintf("initialize exception vector table: ");
vec_init(); vec_init();
xprintf("finished\r\n"); xprintf("finished\r\n");
@@ -469,6 +464,11 @@ void BaS(void)
ide_init(); ide_init();
xprintf("finished\r\n"); xprintf("finished\r\n");
xprintf("enable MMU: ");
MCF_MMU_MMUCR = MCF_MMU_MMUCR_EN; /* MMU on */
NOP(); /* force pipeline sync */
xprintf("finished\r\n");
xprintf("enable video: "); xprintf("enable video: ");
/* /*