2000-08-11 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>

* console.c(_BSP_output_char): Output CR after LF for printk.
This commit is contained in:
Joel Sherrill
2000-08-11 19:53:18 +00:00
parent 57b1f53b1e
commit b7d4d2abd9
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2000-08-11 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* console.c(_BSP_output_char): Output CR after LF for printk.
2000-08-11 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* README: Updated
@@ -24,6 +28,7 @@
* network/network.c: Cleanup of network driver to reduce warnings.
Addition of second parameter to uti596_attach.
2000-08-10 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: New file.

View File

@@ -1451,6 +1451,7 @@ rtems_status_code do_poll_write(
void _BSP_output_char(char c)
{
rtems_device_minor_number printk_minor;
char cr ='\r';
/*
* Can't rely on console_initialize having been called before this function
@@ -1458,11 +1459,13 @@ void _BSP_output_char(char c)
*/
if ( NVRAM_CONFIGURE )
/* J1-4 is on, use NVRAM info for configuration */
printk_minor = nvram->console_printk_port & 0x30;
printk_minor = (nvram->console_printk_port & 0x30) >> 4;
else
printk_minor = PRINTK_MINOR;
_167Bug_pollWrite(printk_minor, &c, 1);
if ( c == '\n' )
_167Bug_pollWrite(printk_minor, &cr, 1);
}