From 21c873850d9b71cbd26f2dc1661bdf117d78b294 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 18 Oct 2000 15:40:46 +0000 Subject: 2000-10-18 Joel Sherrill * mpc8xx/console-generic/console-generic.c: Removed warnings. --- c/src/lib/libcpu/powerpc/ChangeLog | 4 ++++ .../mpc8xx/console-generic/console-generic.c | 21 ++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 1cdea259ee..7f64334b8d 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,7 @@ +2000-10-18 Joel Sherrill + + * mpc8xx/console-generic/console-generic.c: Removed warnings. + 2000-10-18 Joel Sherrill * mpc6xx/clock/c_clock.h: Removed commented out reference to . diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c index c55a979361..1eaacb91c4 100644 --- a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c +++ b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c @@ -32,7 +32,6 @@ * * COPYRIGHT (c) 1989-1998. * On-Line Applications Research Corporation (OAR). - * Copyright assigned to U.S. Government, 1994. * * Modifications by Darlene Stewart * and Charles-Antoine Gauthier @@ -54,7 +53,7 @@ #include #include #include -#include +#include /* for nvram interface to board */ extern rtems_cpu_table Cpu_table; @@ -183,8 +182,8 @@ char m8xx_get_brg_clk(int baud) static int m8xx_smc_set_attributes (int minor, const struct termios *t) { - int baud, brg, csize, ssize, psize; - rtems_unsigned16 clen, cstopb, parenb, parodd, cread; + int baud, brg=0, csize=0, ssize, psize; + rtems_unsigned16 clen=0, cstopb, parenb, parodd, cread; /* Baud rate */ switch (t->c_cflag & CBAUD) { @@ -279,8 +278,8 @@ m8xx_smc_set_attributes (int minor, const struct termios *t) static int m8xx_scc_set_attributes (int minor, const struct termios *t) { - int baud, brg; - rtems_unsigned16 csize, cstopb, parenb, parodd; + int baud, brg=0; + rtems_unsigned16 csize=0, cstopb, parenb, parodd; /* Baud rate */ switch (t->c_cflag & CBAUD) { @@ -601,8 +600,8 @@ void m8xx_uart_scc_initialize (int minor) { unsigned char brg; - volatile m8xxSCCparms_t *sccparms; - volatile m8xxSCCRegisters_t *sccregs; + volatile m8xxSCCparms_t *sccparms = 0; + volatile m8xxSCCRegisters_t *sccregs = 0; /* * Check that minor number is valid @@ -858,8 +857,8 @@ void m8xx_uart_smc_initialize (int minor) { unsigned char brg; - volatile m8xxSMCparms_t *smcparms; - volatile m8xxSMCRegisters_t *smcregs; + volatile m8xxSMCparms_t *smcparms = 0; + volatile m8xxSMCRegisters_t *smcregs = 0; /* * Check that minor number is valid @@ -1100,7 +1099,7 @@ m8xx_uart_pollWrite( while (TxBd[minor]->status & M8xx_BD_READY) continue; 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]->length = 1; TxBd[minor]->status = M8xx_BD_READY | M8xx_BD_WRAP; -- cgit v1.2.3