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:
10
sys/BaS.c
10
sys/BaS.c
@@ -452,11 +452,6 @@ void BaS(void)
|
||||
flush_and_invalidate_caches();
|
||||
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: ");
|
||||
vec_init();
|
||||
xprintf("finished\r\n");
|
||||
@@ -469,6 +464,11 @@ void BaS(void)
|
||||
ide_init();
|
||||
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: ");
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user