moved .data where it belongs (to RAM)

This commit is contained in:
Markus Fröschle
2012-10-22 11:08:26 +00:00
parent 04cbe047a1
commit ddaf164925
4 changed files with 12 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ SECTIONS {
.bas _Bas_base : AT (ADDR(.text) + SIZEOF(.text)) .bas _Bas_base : AT (ADDR(.text) + SIZEOF(.text))
{ {
objs/BaS.o(.text) objs/BaS.o(.text)
# put other routines into the same segment (RAM) as BaS.o /* put other routines into the same segment (RAM) as BaS.o */
objs/sd_card.o(.text) objs/sd_card.o(.text)
objs/mmu.o(.text) objs/mmu.o(.text)
objs/exceptions.o(.text) objs/exceptions.o(.text)
@@ -77,6 +77,8 @@ SECTIONS {
objs/ewf.o(.text) objs/ewf.o(.text)
objs/illegal_instruction.o(.text) objs/illegal_instruction.o(.text)
*(.data)
_bas_end = ABSOLUTE(.); _bas_end = ABSOLUTE(.);
} > ram } > ram

View File

@@ -51,6 +51,7 @@ void BaS(void)
MCF_PSC0_PSCTB_8BIT = MCF_PSC3_PSCRB_8BIT; MCF_PSC0_PSCTB_8BIT = MCF_PSC3_PSCRB_8BIT;
MCF_PSC0_PSCTB_8BIT = MCF_PSC3_PSCRB_8BIT; MCF_PSC0_PSCTB_8BIT = MCF_PSC3_PSCRB_8BIT;
MCF_PSC0_PSCTB_8BIT = 0x0d0a; MCF_PSC0_PSCTB_8BIT = 0x0d0a;
MCF_PSC3_PSCTB_8BIT = 0x01; /* request RTC data */ MCF_PSC3_PSCTB_8BIT = 0x01; /* request RTC data */
if (MCF_PSC3_PSCRB_8BIT == 0x81) if (MCF_PSC3_PSCRB_8BIT == 0x81)

View File

@@ -551,7 +551,7 @@ non_acsi_dma:
irq6_1: irq6_1:
lea MCF_GPIO_PODR_FEC1L,a5 lea MCF_GPIO_PODR_FEC1L,a5
bclr.b #4,(a5) // led on bclr.b #4,(a5) // led on
lea blinker(pc),a5 lea blinker,a5
addq.l #1,(a5) // +1 addq.l #1,(a5) // +1
move.l (a5),d0 move.l (a5),d0
and.l #0x80,d0 and.l #0x80,d0
@@ -612,8 +612,13 @@ sev_sup6:
move.l (a5),12(a7) // hier gehts weiter move.l (a5),12(a7) // hier gehts weiter
movem.l (a7),d0/a5 // register zur<EFBFBD>ck movem.l (a7),d0/a5 // register zur<EFBFBD>ck
rts rts
.data
blinker:.long 0 blinker:.long 0
.text
/* /*
* pseudo dma */ * pseudo dma */
*/ */

View File

@@ -356,7 +356,7 @@ void init_PCI(void) {
MCF_PCI_PCICR2 = MCF_PCI_PCICR2_MINGNT(16) + MCF_PCI_PCICR2_MAXLAT(16); MCF_PCI_PCICR2 = MCF_PCI_PCICR2_MINGNT(16) + MCF_PCI_PCICR2_MAXLAT(16);
// Turn on error signaling // Turn on error signaling
MCF_PCI_PCIICR = MCF_PCI_PCIICR_TAE + MCF_PCI_PCIICR_TAE * MCF_PCI_PCIICR_REE + 32; MCF_PCI_PCIICR = MCF_PCI_PCIICR_TAE + MCF_PCI_PCIICR_TAE + MCF_PCI_PCIICR_REE + 32;
MCF_PCI_PCIGSCR |= MCF_PCI_PCIGSCR_SEE; MCF_PCI_PCIGSCR |= MCF_PCI_PCIGSCR_SEE;
/* Configure Initiator Windows */ /* Configure Initiator Windows */