successfully compiled BaS_gcc over NFS on a Linux host from the Firebee:

network test passed
This commit is contained in:
Markus Fröschle
2015-01-12 21:37:44 +00:00
parent f6d4bfeea2
commit c7a1641405
3 changed files with 9 additions and 8 deletions

View File

@@ -39,7 +39,7 @@
#error "unknown machine!" #error "unknown machine!"
#endif /* MACHINE_FIREBEE */ #endif /* MACHINE_FIREBEE */
#define DBG_DMA //#define DBG_DMA
#ifdef DBG_DMA #ifdef DBG_DMA
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0) #define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
#else #else

View File

@@ -32,7 +32,7 @@
#error Unknown machine! #error Unknown machine!
#endif #endif
#define DBG_FEC //#define DBG_FEC
#ifdef DBG_FEC #ifdef DBG_FEC
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0) #define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
#else #else

View File

@@ -37,7 +37,7 @@
#include "dma.h" #include "dma.h"
#include "pci.h" #include "pci.h"
#define IRQ_DEBUG //#define IRQ_DEBUG
#if defined(IRQ_DEBUG) #if defined(IRQ_DEBUG)
#define dbg(format, arg...) do { xprintf("DEBUG %s(): " format, __FUNCTION__, ##arg); } while (0) #define dbg(format, arg...) do { xprintf("DEBUG %s(): " format, __FUNCTION__, ##arg); } while (0)
#else #else
@@ -243,7 +243,7 @@ bool pic_interrupt_handler(void *arg1, void *arg2)
uint8_t rcv_byte; uint8_t rcv_byte;
rcv_byte = MCF_PSC3_PSCRB_8BIT; rcv_byte = MCF_PSC3_PSCRB_8BIT;
if (rcv_byte == 2) // PIC requests RTC data if (rcv_byte == 2) /* PIC requests RTC data */
{ {
uint8_t *rtc_reg = (uint8_t *) 0xffff8961; uint8_t *rtc_reg = (uint8_t *) 0xffff8961;
uint8_t *rtc_data = (uint8_t *) 0xffff8963; uint8_t *rtc_data = (uint8_t *) 0xffff8963;
@@ -271,21 +271,22 @@ bool xlbpci_interrupt_handler(void *arg1, void *arg2)
if (reason & MCF_PCI_PCIISR_RE) if (reason & MCF_PCI_PCIISR_RE)
{ {
err("Retry error. Retry terminated or max retries reached. Cleared\r\n"); dbg("Retry error. Retry terminated or max retries reached. Cleared\r\n");
MCF_PCI_PCIISR |= MCF_PCI_PCIISR_RE; MCF_PCI_PCIISR |= MCF_PCI_PCIISR_RE;
} }
if (reason & MCF_PCI_PCIISR_IA) if (reason & MCF_PCI_PCIISR_IA)
{ {
err("Initiator abort. No target answered in time. Cleared.\r\n"); dbg("Initiator abort. No target answered in time. Cleared.\r\n");
MCF_PCI_PCIISR |= MCF_PCI_PCIISR_IA; MCF_PCI_PCIISR |= MCF_PCI_PCIISR_IA;
} }
if (reason & MCF_PCI_PCIISR_TA) if (reason & MCF_PCI_PCIISR_TA)
{ {
err("Target abort. Cleared.\r\n"); dbg("Target abort. Cleared.\r\n");
MCF_PCI_PCIISR |= MCF_PCI_PCIISR_TA; MCF_PCI_PCIISR |= MCF_PCI_PCIISR_TA;
} }
return true; return true;
} }
@@ -330,7 +331,7 @@ bool irq5_handler(void *arg1, void *arg2)
pending_interrupts & FBEE_INTR_PCI_INTC || pending_interrupts & FBEE_INTR_PCI_INTC ||
pending_interrupts & FBEE_INTR_PCI_INTD) pending_interrupts & FBEE_INTR_PCI_INTD)
{ {
dbg("PCI interrupt\r\n"); dbg("PCI interrupt IRQ5\r\n");
FBEE_INTR_CLEAR = FBEE_INTR_PCI_INTA | FBEE_INTR_CLEAR = FBEE_INTR_PCI_INTA |
FBEE_INTR_PCI_INTB | FBEE_INTR_PCI_INTB |
FBEE_INTR_PCI_INTC | FBEE_INTR_PCI_INTC |