diff --git a/Makefile b/Makefile index ce178ef..e912d5b 100644 --- a/Makefile +++ b/Makefile @@ -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- diff --git a/mcf5474.gdb b/mcf5474.gdb index 0fb1111..7b65166 100644 --- a/mcf5474.gdb +++ b/mcf5474.gdb @@ -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 # diff --git a/sources/BaS.c b/sources/BaS.c index c67b0ad..8f6d14d 100644 --- a/sources/BaS.c +++ b/sources/BaS.c @@ -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: "); diff --git a/sources/exceptions.S b/sources/exceptions.S index 0ba945a..cb1cf42 100644 --- a/sources/exceptions.S +++ b/sources/exceptions.S @@ -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�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