Changeset 9bc590da in rtems


Ignore:
Timestamp:
Aug 8, 2008, 4:28:13 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
faf33fc1
Parents:
0185851c
Message:

2008-08-08 Joel Sherrill <joel.sherrill@…>

  • console/debugputs.c: Correct use of sparc_disable_interrupt and sparc_enable_interrupt.
Location:
c/src/lib/libbsp/sparc/leon3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    r0185851c r9bc590da  
     12008-08-08      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * console/debugputs.c: Correct use of sparc_disable_interrupt and
     4        sparc_enable_interrupt.
     5
    162008-08-08      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/sparc/leon3/console/debugputs.c

    r0185851c r9bc590da  
    9090{
    9191  char *s;
    92   /* unsigned32 old_level; */
     92  uint32_t level;
    9393
    9494  /* LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */
    95   sparc_disable_interrupts();
     95  level = sparc_disable_interrupts();
    9696  LEON3_Console_Uart[0]->ctrl = LEON_REG_UART_CTRL_TE;
    9797    for ( s = string ; *s ; s++ )
     
    100100    console_outbyte_polled( 0, '\r' );
    101101    console_outbyte_polled( 0, '\n' );
    102   sparc_enable_interrupts(); 
     102  sparc_enable_interrupts(level);
    103103    /* LEON_Restore_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */
    104104}
Note: See TracChangeset for help on using the changeset viewer.