2000-10-18 Joel Sherrill <joel@OARcorp.com>

* mpc8xx/console-generic/console-generic.c: Removed warnings.
This commit is contained in:
Joel Sherrill
2000-10-18 15:40:46 +00:00
parent 4fb2a1958b
commit 21c873850d
2 changed files with 14 additions and 11 deletions

View File

@@ -1,3 +1,7 @@
2000-10-18 Joel Sherrill <joel@OARcorp.com>
* mpc8xx/console-generic/console-generic.c: Removed warnings.
2000-10-18 Joel Sherrill <joel@OARcorp.com> 2000-10-18 Joel Sherrill <joel@OARcorp.com>
* mpc6xx/clock/c_clock.h: Removed commented out reference to <bsp.h>. * mpc6xx/clock/c_clock.h: Removed commented out reference to <bsp.h>.

View File

@@ -32,7 +32,6 @@
* *
* COPYRIGHT (c) 1989-1998. * COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* Copyright assigned to U.S. Government, 1994.
* *
* Modifications by Darlene Stewart <Darlene.Stewart@iit.nrc.ca> * Modifications by Darlene Stewart <Darlene.Stewart@iit.nrc.ca>
* and Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca> * and Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
@@ -54,7 +53,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <termios.h> #include <termios.h>
#include <bsp.h> #include <bsp.h> /* for nvram interface to board */
extern rtems_cpu_table Cpu_table; extern rtems_cpu_table Cpu_table;
@@ -183,8 +182,8 @@ char m8xx_get_brg_clk(int baud)
static int static int
m8xx_smc_set_attributes (int minor, const struct termios *t) m8xx_smc_set_attributes (int minor, const struct termios *t)
{ {
int baud, brg, csize, ssize, psize; int baud, brg=0, csize=0, ssize, psize;
rtems_unsigned16 clen, cstopb, parenb, parodd, cread; rtems_unsigned16 clen=0, cstopb, parenb, parodd, cread;
/* Baud rate */ /* Baud rate */
switch (t->c_cflag & CBAUD) { switch (t->c_cflag & CBAUD) {
@@ -279,8 +278,8 @@ m8xx_smc_set_attributes (int minor, const struct termios *t)
static int static int
m8xx_scc_set_attributes (int minor, const struct termios *t) m8xx_scc_set_attributes (int minor, const struct termios *t)
{ {
int baud, brg; int baud, brg=0;
rtems_unsigned16 csize, cstopb, parenb, parodd; rtems_unsigned16 csize=0, cstopb, parenb, parodd;
/* Baud rate */ /* Baud rate */
switch (t->c_cflag & CBAUD) { switch (t->c_cflag & CBAUD) {
@@ -601,8 +600,8 @@ void
m8xx_uart_scc_initialize (int minor) m8xx_uart_scc_initialize (int minor)
{ {
unsigned char brg; unsigned char brg;
volatile m8xxSCCparms_t *sccparms; volatile m8xxSCCparms_t *sccparms = 0;
volatile m8xxSCCRegisters_t *sccregs; volatile m8xxSCCRegisters_t *sccregs = 0;
/* /*
* Check that minor number is valid * Check that minor number is valid
@@ -858,8 +857,8 @@ void
m8xx_uart_smc_initialize (int minor) m8xx_uart_smc_initialize (int minor)
{ {
unsigned char brg; unsigned char brg;
volatile m8xxSMCparms_t *smcparms; volatile m8xxSMCparms_t *smcparms = 0;
volatile m8xxSMCRegisters_t *smcregs; volatile m8xxSMCRegisters_t *smcregs = 0;
/* /*
* Check that minor number is valid * Check that minor number is valid
@@ -1100,7 +1099,7 @@ m8xx_uart_pollWrite(
while (TxBd[minor]->status & M8xx_BD_READY) while (TxBd[minor]->status & M8xx_BD_READY)
continue; continue;
txBuf[minor] = *buf++; txBuf[minor] = *buf++;
rtems_cache_flush_multiple_data_lines( &txBuf[minor], 1 ); rtems_cache_flush_multiple_data_lines( (void *)&txBuf[minor], 1 );
TxBd[minor]->buffer = &txBuf[minor]; TxBd[minor]->buffer = &txBuf[minor];
TxBd[minor]->length = 1; TxBd[minor]->length = 1;
TxBd[minor]->status = M8xx_BD_READY | M8xx_BD_WRAP; TxBd[minor]->status = M8xx_BD_READY | M8xx_BD_WRAP;