Ignore:
Timestamp:
Sep 17, 2007, 2:09:43 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b00e693
Parents:
76e552d3
Message:

2007-09-17 Joel Sherrill <joel.sherrill@…>

  • PCI_bus/universe.c, console/console.c, include/bsp.h, irq/FPGA.c, startup/bspstart.c, startup/genpvec.c, startup/spurious.c: Eliminate DEBUG_puts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/score603e/console/console.c

    r76e552d3 r50f93fb  
    6060 *  Console Device Driver Entry Points
    6161 */
    62 
    63 /* PAGE
    64  *
    65  *  DEBUG_puts
    66  *
    67  *  This should be safe in the event of an error.  It attempts to insure
    68  *  that no TX empty interrupts occur while it is doing polled IO.  Then
    69  *  it restores the state of that external interrupt.
    70  *
    71  *  Input parameters:
    72  *    string  - pointer to debug output string
    73  *
    74  *  Output parameters:  NONE
    75  *
    76  *  Return values:      NONE
    77  */
    78 
    79 void DEBUG_puts(
    80   char *string
    81 )
    82 {
    83   char *s;
    84   int   console;
    85   volatile uint8_t         *csr;
    86 
    87   console = USE_FOR_CONSOLE;
    88 
    89   csr = Ports_85C30[ console ].ctrl;
    90 
    91   /* should disable interrupts here */
    92 
    93   for ( s = string ; *s ; s++ )
    94     outbyte_polled_85c30( csr, *s );
    95 
    96   outbyte_polled_85c30( csr, '\r' );
    97   outbyte_polled_85c30( csr, '\n' );
    98 
    99   /* should enable interrupts here */
    100 }
    10162
    10263/* PAGE
Note: See TracChangeset for help on using the changeset viewer.