re-enabled MMU

This commit is contained in:
Markus Fröschle
2012-11-04 11:23:48 +00:00
parent a096d8f517
commit 87fb2f73f9
4 changed files with 11 additions and 10 deletions

View File

@@ -10,7 +10,7 @@
# can be either "Y" or "N" (without quotes). "Y" for using the m68k-elf-, "N" for using the m68k-atari-mint
# toolchain
COMPILE_ELF=N
COMPILE_ELF=Y
ifeq (Y,$(COMPILE_ELF))
TCPREFIX=m68k-elf-

View File

@@ -1,16 +1,16 @@
#
# GDB Init script for the Coldfire 5206 processor.
#
# The main purpose of this script is to configure the
# DRAM controller so code can be loaded.
#
# GDB Init script for the Coldfire 5474 processor (firebee).
#
define addresses
set $vbr = 0x00000000
monitor bdm-ctl-set 0x0801 0x00000000
set $mbar = 0xFF000000
monitor bdm-ctl-set 0x0C0F 0xFF000000
set $rambar0 = 0xFF100000
monitor bdm-ctl-set 0x0C04 0xFF100007
set $rambar1 = 0xFF101000
monitor bdm-ctl-set 0x0C05 0xFF101001
end
#

View File

@@ -111,7 +111,7 @@ void BaS(void)
MCF_INTC_IMRL = 0xffffff00; /* int 1-7 on */
MCF_INTC_IMRH = 0xbffffffe; /* psc3 and timer 0 int on */
//MCF_MMU_MMUCR = MCF_MMU_MMUCR_EN; /* MMU on */
MCF_MMU_MMUCR = MCF_MMU_MMUCR_EN; /* MMU on */
xprintf("finished\r\n");
xprintf("IDE reset: ");

View File

@@ -1,3 +1,4 @@
#define cf_stack
/*
* initialize exception vectors
*/
@@ -133,7 +134,7 @@
subq.l #8,a7
movem.l d0/a5,(a7) // register sichern
lea MCF_EPORT_EPFR,a5
move.b #clr_int,(a5) // clear int pending
move.b #\clr_int,(a5) // clear int pending
// test auf protect mode ---------------------
move.b DIP_SWITCHa,d0
btst #7,d0
@@ -142,7 +143,7 @@
movem.l (a7),d0/a5 // register zur<EFBFBD>ck
addq.l #8,a7
move.l \vector,-(a7)
move #0x2200,sr
move #0x2\200,sr
rts
irq_protect:
move.l usp,a5 // usp holen
@@ -173,7 +174,7 @@ sev_supint:
#endif
irq_end:
move.l a5,usp // usp setzen
lea vector,a5
lea \vector,a5
adda.l _rt_vbr,a5
move.l (a5),12(a7) // vectoradresse eintragen
move.b #\int_mask,10(a7) // intmaske setzen