2008-08-08 Joel Sherrill <joel.sherrill@OARcorp.com>

* console/debugputs.c: Correct use of sparc_disable_interrupt and
	sparc_enable_interrupt.
This commit is contained in:
Joel Sherrill
2008-08-08 16:28:13 +00:00
parent 0185851c44
commit 9bc590da95
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2008-08-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/debugputs.c: Correct use of sparc_disable_interrupt and
sparc_enable_interrupt.
2008-08-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds: All SPARC executables should include

View File

@@ -89,16 +89,16 @@ void DEBUG_puts(
)
{
char *s;
/* unsigned32 old_level; */
uint32_t level;
/* LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */
sparc_disable_interrupts();
level = sparc_disable_interrupts();
LEON3_Console_Uart[0]->ctrl = LEON_REG_UART_CTRL_TE;
for ( s = string ; *s ; s++ )
console_outbyte_polled( 0, *s );
console_outbyte_polled( 0, '\r' );
console_outbyte_polled( 0, '\n' );
sparc_enable_interrupts();
sparc_enable_interrupts(level);
/* LEON_Restore_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */
}