Changeset 21c8738 in rtems


Ignore:
Timestamp:
10/18/00 15:40:46 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8c49701
Parents:
4fb2a19
Message:

2000-10-18 Joel Sherrill <joel@…>

  • mpc8xx/console-generic/console-generic.c: Removed warnings.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r4fb2a19 r21c8738  
     12000-10-18      Joel Sherrill <joel@OARcorp.com>
     2
     3        * mpc8xx/console-generic/console-generic.c: Removed warnings.
     4
    152000-10-18      Joel Sherrill <joel@OARcorp.com>
    26
  • c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c

    r4fb2a19 r21c8738  
    3333 *  COPYRIGHT (c) 1989-1998.
    3434 *  On-Line Applications Research Corporation (OAR).
    35  *  Copyright assigned to U.S. Government, 1994.
    3635 *
    3736 *  Modifications by Darlene Stewart <Darlene.Stewart@iit.nrc.ca>
     
    5554#include <unistd.h>
    5655#include <termios.h>
    57 #include <bsp.h>
     56#include <bsp.h>            /* for nvram interface to board */
    5857
    5958extern rtems_cpu_table Cpu_table;
     
    184183m8xx_smc_set_attributes (int minor, const struct termios *t)
    185184{
    186   int baud, brg, csize, ssize, psize;
    187   rtems_unsigned16 clen, cstopb, parenb, parodd, cread;
     185  int baud, brg=0, csize=0, ssize, psize;
     186  rtems_unsigned16 clen=0, cstopb, parenb, parodd, cread;
    188187
    189188  /* Baud rate */
     
    280279m8xx_scc_set_attributes (int minor, const struct termios *t)
    281280{
    282   int baud, brg;
    283   rtems_unsigned16 csize, cstopb, parenb, parodd;
     281  int baud, brg=0;
     282  rtems_unsigned16 csize=0, cstopb, parenb, parodd;
    284283
    285284  /* Baud rate */
     
    602601{
    603602  unsigned char brg;
    604   volatile m8xxSCCparms_t *sccparms;
    605   volatile m8xxSCCRegisters_t *sccregs;
     603  volatile m8xxSCCparms_t *sccparms = 0;
     604  volatile m8xxSCCRegisters_t *sccregs = 0;
    606605
    607606  /*
     
    859858{
    860859  unsigned char brg;
    861   volatile m8xxSMCparms_t *smcparms;
    862   volatile m8xxSMCRegisters_t *smcregs;
     860  volatile m8xxSMCparms_t *smcparms = 0;
     861  volatile m8xxSMCRegisters_t *smcregs = 0;
    863862
    864863  /*
     
    11011100      continue;
    11021101    txBuf[minor] = *buf++;
    1103     rtems_cache_flush_multiple_data_lines( &txBuf[minor], 1 );
     1102    rtems_cache_flush_multiple_data_lines( (void *)&txBuf[minor], 1 );
    11041103    TxBd[minor]->buffer = &txBuf[minor];
    11051104    TxBd[minor]->length = 1;
Note: See TracChangeset for help on using the changeset viewer.