2002-11-01 Joel Sherrill <joel@OARcorp.com>

* clock/p_clock.c, console/console.c, startup/bspstart.c: Removed
	warnings.
This commit is contained in:
Joel Sherrill
2002-11-01 21:54:51 +00:00
parent bbb71a1573
commit 3d1c0aa2d7
4 changed files with 19 additions and 12 deletions

View File

@@ -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.

View File

@@ -16,6 +16,7 @@
#include <bsp.h>
#include <bsp/irq.h>
#include <rtems/bspIo.h>
extern void clockOn(void*);
extern void clockOff (void*);

View File

@@ -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" );

View File

@@ -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>