summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:54:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:54:51 +0000
commit3d1c0aa2d7f5375e42d780799c2e173ff72ec446 (patch)
tree283aa41536b3ff61ab864158d89d299e88c6ba2a
parentbbb71a15739387160103b55a05804be7192ca856 (diff)
downloadrtems-3d1c0aa2d7f5375e42d780799c2e173ff72ec446.tar.bz2
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* clock/p_clock.c, console/console.c, startup/bspstart.c: Removed warnings.
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c1
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/console/console.c24
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c1
4 files changed, 19 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
index 05ae199771..b545732053 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-01 Joel Sherrill <joel@OARcorp.com>
+
+ * clock/p_clock.c, console/console.c, startup/bspstart.c: Removed
+ warnings.
+
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c b/c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c
index 85b56dd942..fe7f422d01 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c
@@ -16,6 +16,7 @@
#include <bsp.h>
#include <bsp/irq.h>
+#include <rtems/bspIo.h>
extern void clockOn(void*);
extern void clockOff (void*);
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
index cfb4564801..8f731058d5 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
@@ -173,9 +173,9 @@ static int _EPPCBug_pollRead(
simask = m8xx.simask;
/* Check for a char in the input FIFO using .CIO_STAT */
- asm volatile( "li 10,0x202
- mr 3, %0
- mr 4, %1
+ asm volatile( "li 10,0x202\n\
+ mr 3, %0\n\
+ mr 4, %1\n\
sc"
:: "g" (&input_params), "g" (&output_params) : "3", "4", "10" );
@@ -185,9 +185,9 @@ static int _EPPCBug_pollRead(
input_params.inbuf = &c;
input_params.nbytes_requested = 1;
- asm volatile( "li 10,0x200 /* Code for .CIO_READ */
- mr 3, %0 /* Address of input_params */
- mr 4, %1 /* Address of output_params */
+ asm volatile( "li 10,0x200 /* Code for .CIO_READ */\n\
+ mr 3, %0 /* Address of input_params */\n\
+ mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
:: "g" (&input_params), "g" (&output_params) : "3", "4", "10" );
@@ -288,9 +288,9 @@ static int _EPPCBug_pollWrite(
/* Wait for space in the output buffer */
do {
/* Check for space in the output FIFO */
- asm volatile( "li 10,0x202 /* Code for .CIO_STAT */
- mr 3, %0 /* Address of input_params */
- mr 4, %1 /* Address of output_params */
+ asm volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\
+ mr 3, %0 /* Address of input_params */\n\
+ mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
:: "g" (&input_params), "g" (&output_params) : "3", "4", "10" );
@@ -302,9 +302,9 @@ static int _EPPCBug_pollWrite(
input_params.outbuf = &buf[i];
input_params.nbytes_to_output = len - i;
- asm volatile( "li 10,0x201 /* Code for .CIO_WRITE */
- mr 3, %0 /* Address of input_params */
- mr 4, %1 /* Address of output_params */
+ asm volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\
+ mr 3, %0 /* Address of input_params */\n\
+ mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
:: "g" (&input_params), "g" (&output_params) : "3", "4", "10" );
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
index 2076e0262d..832c698c45 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <bsp.h>
+#include <bsp/irq.h>
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
#include <rtems/bspIo.h>