diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 04:37:44 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 04:37:44 +0000 |
commit | ac7af4a359cc51bc06e1bf0ed3314744972b8395 (patch) | |
tree | 7c73805f8b66af9b3082fbde80f6eb70edd966ac /c/src/lib/libbsp/powerpc/virtex | |
parent | 2009-11-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ac7af4a359cc51bc06e1bf0ed3314744972b8395.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/virtex')
9 files changed, 73 insertions, 73 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex/dlentry/dlentry.S b/c/src/lib/libbsp/powerpc/virtex/dlentry/dlentry.S index 79f7d29201..1b66af4d90 100644 --- a/c/src/lib/libbsp/powerpc/virtex/dlentry/dlentry.S +++ b/c/src/lib/libbsp/powerpc/virtex/dlentry/dlentry.S @@ -41,7 +41,7 @@ #warning The call is "void boot_card(const char* cmdline);" #warning You need to pass a NULL. #warning Please check and remove these errors. - + /* * The virtex ELF link scripts support three special sections: * .entry The actual entry point @@ -116,7 +116,7 @@ text_length: lis r2,__vectors@h /* set EVPR exc. vector prefix */ #else lis r2,0 -#endif +#endif mtspr evpr,r2 /*------------------------------------------------------------------- diff --git a/c/src/lib/libbsp/powerpc/virtex/include/opbintctrl.h b/c/src/lib/libbsp/powerpc/virtex/include/opbintctrl.h index f4a1c39bbc..587f467d72 100644 --- a/c/src/lib/libbsp/powerpc/virtex/include/opbintctrl.h +++ b/c/src/lib/libbsp/powerpc/virtex/include/opbintctrl.h @@ -82,7 +82,7 @@ extern "C" { * activate the interrupt controller */ rtems_status_code opb_intc_init(void); - + #ifdef __cplusplus } #endif diff --git a/c/src/lib/libbsp/powerpc/virtex/include/xparameters_dflt.h b/c/src/lib/libbsp/powerpc/virtex/include/xparameters_dflt.h index 6dc91751e0..ca136c2525 100644 --- a/c/src/lib/libbsp/powerpc/virtex/include/xparameters_dflt.h +++ b/c/src/lib/libbsp/powerpc/virtex/include/xparameters_dflt.h @@ -5,8 +5,8 @@ * Version: Xilinx EDK 8.2.02 EDK_Im_Sp2.4 * DO NOT EDIT. * -* Copyright (c) 2005 Xilinx, Inc. All rights reserved. -* +* Copyright (c) 2005 Xilinx, Inc. All rights reserved. +* * Description: Driver parameters * *******************************************************************/ diff --git a/c/src/lib/libbsp/powerpc/virtex/irq/irq.h b/c/src/lib/libbsp/powerpc/virtex/irq/irq.h index b9a4413495..f8d6eae7ce 100644 --- a/c/src/lib/libbsp/powerpc/virtex/irq/irq.h +++ b/c/src/lib/libbsp/powerpc/virtex/irq/irq.h @@ -23,7 +23,7 @@ #include <bsp/opbintctrl.h> /* - * the following definitions specify the indices used + * the following definitions specify the indices used * to interface the interrupt handler API */ @@ -70,8 +70,8 @@ extern "C" { */ typedef enum { BSP_OPBINTC_IRQ_FIRST = BSP_OPBINTC_IRQ_LOWEST_OFFSET, - /* - * Note: for this BSP, the peripheral names are derived + /* + * Note: for this BSP, the peripheral names are derived * from the Xilinx parameter file */ BSP_OPBINTC_IRQ_LAST = BSP_OPBINTC_IRQ_MAX_OFFSET, diff --git a/c/src/lib/libbsp/powerpc/virtex/irq/irq_init.c b/c/src/lib/libbsp/powerpc/virtex/irq/irq_init.c index a4a8991599..0352683cea 100644 --- a/c/src/lib/libbsp/powerpc/virtex/irq/irq_init.c +++ b/c/src/lib/libbsp/powerpc/virtex/irq/irq_init.c @@ -101,7 +101,7 @@ int C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum) #if 0 /* We now let the clock driver hook the exception directly */ case ASM_BOOKE_DEC_VECTOR: BSP_rtems_irq_tbl[BSP_PIT].hdl - (BSP_rtems_irq_tbl[BSP_PIT].handle); + (BSP_rtems_irq_tbl[BSP_PIT].handle); break; #endif #if 0 /* Critical interrupts not yet supported */ @@ -111,7 +111,7 @@ int C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum) } return 0; } - + /*********************************************************** * functions to set/get/remove interrupt handlers ***********************************************************/ @@ -166,7 +166,7 @@ int BSP_install_rtems_irq_handler (const rtems_irq_connect_data* irq) int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq) { rtems_interrupt_level level; - + /* * check for valid IRQ name */ @@ -185,7 +185,7 @@ int BSP_get_current_rtems_irq_handler (rtems_irq_connect_data* irq) int BSP_remove_rtems_irq_handler (const rtems_irq_connect_data* irq) { rtems_interrupt_level level; - + /* * check for valid IRQ name */ @@ -268,7 +268,7 @@ int BSP_rtems_irq_mngt_set(rtems_irq_global_settings* config) /* * store any irq-like processor exceptions */ - for (i = BSP_PROCESSOR_IRQ_LOWEST_OFFSET; + for (i = BSP_PROCESSOR_IRQ_LOWEST_OFFSET; i < BSP_PROCESSOR_IRQ_MAX_OFFSET; i++) { if (BSP_rtems_irq_tbl[i].hdl != config->defaultEntry.hdl) { @@ -290,7 +290,7 @@ int BSP_rtems_irq_mngt_set(rtems_irq_global_settings* config) /* * dummy for an empty IRQ handler entry - */ + */ static rtems_irq_connect_data emptyIrq = { 0, /* Irq Name */ BSP_irq_nop_hdl, /* handler function */ @@ -342,6 +342,6 @@ void BSP_rtems_irq_mng_init(unsigned cpuId) */ if (!BSP_rtems_irq_mngt_set(&initialConfig)) { BSP_panic("Unable to initialize RTEMS interrupt Management!!! System locked\n"); - } + } } diff --git a/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.c b/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.c index c4578d452c..9307a68415 100644 --- a/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.c +++ b/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.c @@ -96,14 +96,14 @@ void xilTemacFifoRead64(uint32_t aBaseAddr, uint32_t* aBuf, uint32_t aBytes) uint32_t xtrabytes = aBytes % 8; uint32_t i; - for(i = 0; i < numqwords; i++) + for(i = 0; i < numqwords; i++) { aBuf[ (i*2) ] = IN32(aBaseAddr + XTE_PFIFO_RX_DATA_OFFSET); aBuf[ (i*2)+1 ] = IN32(aBaseAddr + XTE_PFIFO_RX_DATA_OFFSET + 4); } /* If there was a non qword sized read */ - if( xtrabytes != 0 ) + if( xtrabytes != 0 ) { uint32_t lastdwordMS = IN32(aBaseAddr + XTE_PFIFO_RX_DATA_OFFSET); uint32_t lastdwordLS = IN32(aBaseAddr + XTE_PFIFO_RX_DATA_OFFSET + 4); @@ -236,17 +236,17 @@ void xilTemacStart(struct ifnet *ifp) /* Reset plb temac */ OUT32(base + XTE_DSR_OFFSET, XTE_DSR_RESET_MASK); - /* Don't have usleep on rtems 4.6 + /* Don't have usleep on rtems 4.6 usleep(1); */ /* @ fastest ppc clock of 500 MHz = 2ns clk */ uint32_t i = 0; for( i = 0; i < 1 * 500; i++) { } - + /* Reset hard temac */ OUT32(base + XTE_CR_OFFSET, XTE_CR_HTRST_MASK); - /* Don't have usleep on rtems 4.6 + /* Don't have usleep on rtems 4.6 usleep(4); */ for( i = 0; i < 4 * 500; i++) { @@ -291,7 +291,7 @@ void xilTemacStart(struct ifnet *ifp) rtems_status_code sc; extern rtems_isr xilTemacIsr( rtems_vector_number aVector ); sc = opb_intc_set_vector( xilTemacIsr, xilTemac->iIsrVector, &xilTemac->iOldHandler ); - if( sc != RTEMS_SUCCESSFUL ) + if( sc != RTEMS_SUCCESSFUL ) { xilTemac->iOldHandler = 0; printk("%s: Could not set interrupt vector for interface '%s' opb_intc_set_vector ret: %d\n", DRIVER_PREFIX, xilTemac->iUnitName, sc ); @@ -351,7 +351,7 @@ void xilTemacStart(struct ifnet *ifp) printk("%s: xiltemacStart, ipier: %08x\n",DRIVER_PREFIX, ipier); /* Enable device global interrutps */ - OUT32(base + XTE_DGIE_OFFSET, XTE_DGIE_ENABLE_MASK); + OUT32(base + XTE_DGIE_OFFSET, XTE_DGIE_ENABLE_MASK); ifp->if_flags |= IFF_RUNNING; } } @@ -362,7 +362,7 @@ void xilTemacInit( void *voidptr ) void xilTemacReset(struct ifnet *ifp) { - xilTemacStop( ifp ); + xilTemacStop( ifp ); xilTemacStart( ifp ); } @@ -405,7 +405,7 @@ void xilTemacPrintStats( struct ifnet *ifp ) printf("%s:Rx Rej Length Fifo Full: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iRxRejectedLengthFifoFull); printf("%s: Rx Stray Events: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iRxStrayEvents); printf("%s: Rx Max Drained: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iRxMaxDrained); - printf("%s: Tx Interrupts: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iTxInterrupts); + printf("%s: Tx Interrupts: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iTxInterrupts); printf("%s: Tx Max Drained: %lu\n", DRIVER_PREFIX, xilTemac->iStats.iTxMaxDrained); printf("\n"); @@ -423,7 +423,7 @@ void xilTemacIsrSingle(struct XilTemac* xilTemac) /*assert(0);*/ } else { /* Handle all error conditions first */ - if( disr & (XTE_DXR_DPTO_MASK | XTE_DXR_TERR_MASK | + if( disr & (XTE_DXR_DPTO_MASK | XTE_DXR_TERR_MASK | XTE_DXR_RECV_FIFO_MASK | XTE_DXR_SEND_FIFO_MASK) ) { printk("%s: Fatal Bus error, disr: %08x\n", DRIVER_PREFIX, disr); /*assert(0);*/ @@ -443,11 +443,11 @@ void xilTemacIsrSingle(struct XilTemac* xilTemac) } if(pending & XTE_IPXR_RECV_DONE_MASK) { - /* We've received a packet + /* We've received a packet - inc stats - disable rx interrupt - - signal rx thread to empty out fifo - (rx thread must renable interrupt) + - signal rx thread to empty out fifo + (rx thread must renable interrupt) */ xilTemac->iStats.iRxInterrupts++; @@ -458,22 +458,22 @@ void xilTemacIsrSingle(struct XilTemac* xilTemac) if(pending & XTE_IPXR_XMIT_DONE_MASK) { /* We've transmitted a packet. This interrupt is only ever enabled in the ipier if the tx thread didn't have enough space in the data fifo - or the tplr fifo. If that's the case, we: + or the tplr fifo. If that's the case, we: - inc stats - disable tx interrupt - signal tx thread that a transmit has completed and thus there is now - room to send again. + room to send again. */ xilTemac->iStats.iTxInterrupts++; newipier &= ~XTE_IPXR_XMIT_DONE_MASK; - rtems_event_send(gXilTxThread, xilTemac->iIoEvent); + rtems_event_send(gXilTxThread, xilTemac->iIoEvent); } if(pending & XTE_IPXR_RECV_DROPPED_MASK) { /* A packet was dropped (because it was invalid, or receiving it - have overflowed one of the rx fifo's). - - Increment stats. + have overflowed one of the rx fifo's). + - Increment stats. - Clear interrupt condition. */ uint32_t toggle = 0; @@ -493,7 +493,7 @@ void xilTemacIsrSingle(struct XilTemac* xilTemac) OUT32(base + XTE_IPISR_OFFSET, toggle); } if(pending & XTE_IPXR_AUTO_NEG_MASK) { - printk("%s: Autonegotiation finished\n", DRIVER_PREFIX); + printk("%s: Autonegotiation finished\n", DRIVER_PREFIX); OUT32(base + XTE_IPISR_OFFSET, XTE_IPXR_AUTO_NEG_MASK); } if(newipier != ipier) { @@ -502,7 +502,7 @@ void xilTemacIsrSingle(struct XilTemac* xilTemac) } } } - + #if PPC_HAS_CLASSIC_EXCEPTIONS rtems_isr xilTemacIsr( rtems_vector_number aVector ) { @@ -549,7 +549,7 @@ int xilTemacIoctl(struct ifnet* ifp, ioctl_command_t aCommand, caddr_t aData) { struct XilTemac* xilTemac = ifp->if_softc; int32_t error = 0; - + switch(aCommand) { case SIOCGIFADDR: case SIOCSIFADDR: @@ -557,7 +557,7 @@ int xilTemacIoctl(struct ifnet* ifp, ioctl_command_t aCommand, caddr_t aData) break; case SIOCSIFFLAGS: - switch(ifp->if_flags & (IFF_UP | IFF_RUNNING)) + switch(ifp->if_flags & (IFF_UP | IFF_RUNNING)) { case IFF_RUNNING: xilTemacStop(ifp); @@ -579,12 +579,12 @@ int xilTemacIoctl(struct ifnet* ifp, ioctl_command_t aCommand, caddr_t aData) case SIOCADDMULTI: case SIOCDELMULTI: { struct ifreq* ifr = (struct ifreq*) aData; - error = ((aCommand == SIOCADDMULTI) ? - ( ether_addmulti(ifr, &(xilTemac->iArpcom)) ) : - ( ether_delmulti(ifr, &(xilTemac->iArpcom))) + error = ((aCommand == SIOCADDMULTI) ? + ( ether_addmulti(ifr, &(xilTemac->iArpcom)) ) : + ( ether_delmulti(ifr, &(xilTemac->iArpcom))) ); /* ENETRESET indicates that driver should update its multicast filters */ - if(error == ENETRESET) + if(error == ENETRESET) { error = xilTemacSetMulticastFilter( ifp ); } @@ -601,7 +601,7 @@ int xilTemacIoctl(struct ifnet* ifp, ioctl_command_t aCommand, caddr_t aData) } return error; } - + void xilTemacSend(struct ifnet* ifp) { struct XilTemac* xilTemac = ifp->if_softc; @@ -633,14 +633,14 @@ void xilTemacSendPacket(struct ifnet *ifp, struct mbuf* aMbuf) uint32_t i = 0; printk("MBUF: 0x%08x : ", (int32_t) n->m_data); for (i=0;i<n->m_len;i+=2) { - printk("%02x%02x ", mtod(n, unsigned char*)[i], mtod(n, unsigned char*)[i+1]); + printk("%02x%02x ", mtod(n, unsigned char*)[i], mtod(n, unsigned char*)[i+1]); } printk("\n"); #endif if( n->m_len > 0 ) { - memcpy( &gTxBuf[ len ], (char *)n->m_data, n->m_len); - len += n->m_len; + memcpy( &gTxBuf[ len ], (char *)n->m_data, n->m_len); + len += n->m_len; } if( (n = n->m_next) == 0) { break; @@ -664,7 +664,7 @@ void xilTemacTxThreadSingle(struct ifnet* ifp) struct XilTemac* xilTemac = ifp->if_softc; struct mbuf* m; uint32_t base = xilTemac->iAddr; - + #ifdef DEBUG printk("%s: tx send packet, interface '%s'\n", DRIVER_PREFIX, xilTemac->iUnitName ); #endif @@ -719,7 +719,7 @@ void xilTemacTxThread( void *ignore ) for(;;) { /* Wait for: - - notification from stack of packet to send OR + - notification from stack of packet to send OR - notification from interrupt handler that there is space available to send already queued packets */ @@ -741,7 +741,7 @@ void xilTemacTxThread( void *ignore ) } } else { - printk("%s: xilTemacTxThread: event received for device: %s, but device not active\n", + printk("%s: xilTemacTxThread: event received for device: %s, but device not active\n", DRIVER_PREFIX, xilTemac->iUnitName); assert(0); } @@ -800,7 +800,7 @@ void xilTemacRxThreadSingle(struct ifnet* ifp) * there's no more packets, this will turn it off. */ OUT32(base + XTE_IPISR_OFFSET, XTE_IPXR_RECV_DONE_MASK); - } + } /* End) All Rx packets serviced, renable rx interrupt */ uint32_t ipier = IN32(base + XTE_IPIER_OFFSET); @@ -821,14 +821,14 @@ void xilTemacRxThreadSingle(struct ifnet* ifp) * bad happens, as long as we don't read from the rx fifo's if nothing is * there. It is just not as efficient as possible (rx thread being evented * pointlessly) and a bit disconcerting about how it's ocurring. - * The best way to reproduce this is to have two clients run: - * $ ping <host> -f -s 65507 + * The best way to reproduce this is to have two clients run: + * $ ping <host> -f -s 65507 * This flood pings the device from two clients with the maximum size ping * packet. It absolutely hammers the device under test. Eventually, (if * you leave it running overnight for instance), you'll get a couple of these * stray rx events. */ if(npkts == 0) { - /*printk("%s: RxThreadSingle: fatal error: event received, but no packets available\n", DRIVER_PREFIX); + /*printk("%s: RxThreadSingle: fatal error: event received, but no packets available\n", DRIVER_PREFIX); assert(0); */ xilTemac->iStats.iRxStrayEvents++; } @@ -846,9 +846,9 @@ void xilTemacRxThread( void *ignore ) #endif for(;;) { - rtems_bsdnet_event_receive( RTEMS_ALL_EVENTS, + rtems_bsdnet_event_receive( RTEMS_ALL_EVENTS, RTEMS_WAIT | RTEMS_EVENT_ANY, - RTEMS_NO_TIMEOUT, + RTEMS_NO_TIMEOUT, &events); #ifdef DEBUG @@ -884,7 +884,7 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu struct XilTemac* xilTemac; unit = rtems_bsdnet_parse_driver_name(aBsdConfig, &unitName); - if(unit < 0 ) + if(unit < 0 ) { printk("%s: Interface Unit number < 0\n", DRIVER_PREFIX ); return 0; @@ -896,7 +896,7 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu return 0; } - if( aBsdConfig->hardware_address == NULL ) + if( aBsdConfig->hardware_address == NULL ) { printk("%s: No MAC address given for interface '%s'\n", DRIVER_PREFIX, unitName ); return 0; @@ -917,11 +917,11 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu memcpy( xilTemac->iArpcom.ac_enaddr, aBsdConfig->hardware_address, ETHER_ADDR_LEN); - if( aBsdConfig->mtu ) + if( aBsdConfig->mtu ) { mtu = aBsdConfig->mtu; - } - else + } + else { mtu = ETHERMTU; } @@ -937,7 +937,7 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - if(ifp->if_snd.ifq_maxlen == 0) + if(ifp->if_snd.ifq_maxlen == 0) { ifp->if_snd.ifq_maxlen = ifqmaxlen; } @@ -946,7 +946,7 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu ether_ifattach(ifp); /* create shared rx & tx threads */ - if( (gXilRxThread == 0) && (gXilTxThread == 0) ) + if( (gXilRxThread == 0) && (gXilTxThread == 0) ) { printk("%s: Creating shared RX/TX threads\n", DRIVER_PREFIX ); gXilRxThread = rtems_bsdnet_newproc("xerx", 4096, xilTemacRxThread, NULL ); @@ -954,7 +954,7 @@ int32_t xilTemac_driver_attach(struct rtems_bsdnet_ifconfig* aBsdConfig, int aDu } printk("%s: Initializing driver for '%s'\n", DRIVER_PREFIX, xilTemac->iUnitName ); - + printk("%s: base address 0x%08X, intnum 0x%02X, \n", DRIVER_PREFIX, aBsdConfig->bpar, diff --git a/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.h b/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.h index 6a0c821b01..177d67b02a 100644 --- a/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.h +++ b/c/src/lib/libbsp/powerpc/virtex/network/xiltemac.h @@ -31,13 +31,13 @@ #define XTE_IPIER_OFFSET 0x00000028 /**< IP interrupt enable */ #define XTE_DSR_OFFSET 0x00000040 /**< Device software reset (write) */ -/** IPIF transmit fifo +/** IPIF transmit fifo */ #define XTE_PFIFO_TX_BASE_OFFSET 0x00002000 /**< Packet FIFO Tx channel */ #define XTE_PFIFO_TX_VACANCY_OFFSET 0x00002004 /**< Packet Fifo Tx Vacancy */ #define XTE_PFIFO_TX_DATA_OFFSET 0x00002100 /**< IPIF Tx packet fifo port */ -/** IPIF receive fifo +/** IPIF receive fifo */ #define XTE_PFIFO_RX_BASE_OFFSET 0x00002010 /**< Packet FIFO Rx channel */ #define XTE_PFIFO_RX_VACANCY_OFFSET 0x00002014 /**< Packet Fifo Rx Vacancy */ @@ -45,7 +45,7 @@ /** IPIF fifo masks */ -#define XTE_PFIFO_COUNT_MASK 0x00FFFFFF +#define XTE_PFIFO_COUNT_MASK 0x00FFFFFF /** IPIF transmit and recieve DMA offsets */ @@ -332,7 +332,7 @@ #define XTE_EMIID_MIIMDECADDR_MASK 0x0000FFFF /**< Address port */ -struct XilTemacStats +struct XilTemacStats { volatile uint32_t iInterrupts; diff --git a/c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c b/c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c index 0c47e9b7fe..cc59aae857 100644 --- a/c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c +++ b/c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c @@ -45,7 +45,7 @@ RTEMS_INLINE_ROUTINE uint32_t get_ipr(void) void BSP_irq_enable_at_opbintc (rtems_irq_number irqnum) { - *((volatile uint32_t *) (OPB_INTC_BASE + OPB_INTC_SIE)) + *((volatile uint32_t *) (OPB_INTC_BASE + OPB_INTC_SIE)) = 1 << (irqnum - BSP_OPBINTC_IRQ_LOWEST_OFFSET); } @@ -67,9 +67,9 @@ void BSP_irq_handle_at_opbintc(void) c = 0; mask = 0; - for (i = 0; - (i < BSP_OPBINTC_PER_IRQ_NUMBER) - && (ipr != 0); + for (i = 0; + (i < BSP_OPBINTC_PER_IRQ_NUMBER) + && (ipr != 0); i++) { c = (1 << i); diff --git a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c index 72296ab8c1..5076a7c4f8 100644 --- a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c @@ -111,8 +111,8 @@ void bsp_start( void ) ppc_cpu_revision_t myCpuRevision; /* - * Get CPU identification dynamically. Note that the get_ppc_cpu_type() - * function store the result in global variables + * Get CPU identification dynamically. Note that the get_ppc_cpu_type() + * function store the result in global variables * so that it can be used latter... */ myCpu = get_ppc_cpu_type(); @@ -134,7 +134,7 @@ void bsp_start( void ) bsp_timer_least_valid = 3; /* - * Initialize default raw exception handlers. + * Initialize default raw exception handlers. */ sc = ppc_exc_initialize( PPC_INTERRUPT_DISABLE_MASK_DEFAULT, |