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 # can be either "Y" or "N" (without quotes). "Y" for using the m68k-elf-, "N" for using the m68k-atari-mint
# toolchain # toolchain
COMPILE_ELF=N COMPILE_ELF=Y
ifeq (Y,$(COMPILE_ELF)) ifeq (Y,$(COMPILE_ELF))
TCPREFIX=m68k-elf- TCPREFIX=m68k-elf-

View File

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

View File

@@ -111,7 +111,7 @@ void BaS(void)
MCF_INTC_IMRL = 0xffffff00; /* int 1-7 on */ MCF_INTC_IMRL = 0xffffff00; /* int 1-7 on */
MCF_INTC_IMRH = 0xbffffffe; /* psc3 and timer 0 int 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("finished\r\n");
xprintf("IDE reset: "); xprintf("IDE reset: ");

View File

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