summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:09:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:09:43 +0000
commit50f93fbbcba7df632be17e5ce8bb83f99572eb2e (patch)
tree1b30e8a52f4d50a7eff19bc15798d891e670f510 /c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
parent2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-50f93fbbcba7df632be17e5ce8bb83f99572eb2e.tar.bz2
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* PCI_bus/universe.c, console/console.c, include/bsp.h, irq/FPGA.c, startup/bspstart.c, startup/genpvec.c, startup/spurious.c: Eliminate DEBUG_puts.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
index c552505765..364b3e0e4b 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
@@ -15,6 +15,7 @@
#include <bsp.h>
#include <rtems/chain.h>
+#include <rtems/bspIo.h>
#include <assert.h>
#include <stdio.h> /* for sprintf */
@@ -139,7 +140,6 @@ rtems_isr external_exception_ISR (
uint16_t index;
EE_ISR_Type *node;
uint16_t value;
- char err_msg[100];
#if (HAS_PMC_PSC8)
uint16_t PMC_irq;
uint16_t check_irq;
@@ -148,8 +148,7 @@ rtems_isr external_exception_ISR (
index = read_and_clear_irq();
if ( index >= NUM_LIRQ ) {
- sprintf( err_msg, "ERROR:: Invalid interrupt number (%02x)\n", index );
- DEBUG_puts( err_msg );
+ printk( "ERROR:: Invalid interrupt number (%02x)\n", index );
return;
}
@@ -165,12 +164,9 @@ rtems_isr external_exception_ISR (
node = (EE_ISR_Type *)(ISR_Array[ index ].first);
if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
- sprintf(err_msg,"ERROR:: check %d interrupt %02d has no isr\n",
- check_irq, index);
- DEBUG_puts( err_msg);
+ printk"ERROR:: check %d interrupt %02d has no isr\n", check_irq, index);
value = get_irq_mask();
- sprintf(err_msg," Mask = %02x\n", value);
- DEBUG_puts( err_msg);
+ printk(" Mask = %02x\n", value);
}
while ( !_Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
(*node->handler)( node->vector );
@@ -184,11 +180,9 @@ rtems_isr external_exception_ISR (
{
node = (EE_ISR_Type *)(ISR_Array[ index ].first);
if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
- sprintf(err_msg,"ERROR:: interrupt %02x has no isr\n", index);
- DEBUG_puts( err_msg);
+ printk( "ERROR:: interrupt %02x has no isr\n", index);
value = get_irq_mask();
- sprintf(err_msg," Mask = %02x\n", value);
- DEBUG_puts( err_msg);
+ printk(" Mask = %02x\n", value);
return;
}
while ( !_Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {