Changeset 27ce642 in rtems


Ignore:
Timestamp:
Jul 16, 2002, 10:30:11 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
cd66632
Parents:
dc3848d0
Message:

2002-07-16 Eric Norum <eric.norum@…>

  • comm/uart.c: I am using a PC-104 card with no video output. I found that things would lock up if a printk was followed closely by a printf when BSPConsolePort = BSP_UART_COM2 and BSPPrintkPort = BSP_UART_COM1. With this change in place, printf/printk calls can be intermingled with no apparent problems.
Location:
c/src/lib/libbsp/i386/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/ChangeLog

    rdc3848d0 r27ce642  
     12002-07-16      Eric Norum <eric.norum@usask.ca>
     2
     3        * comm/uart.c: I am using a PC-104 card with no video output.  I
     4        found that things would lock up if a printk was followed closely by
     5        a printf when BSPConsolePort = BSP_UART_COM2 and
     6        BSPPrintkPort = BSP_UART_COM1.  With this change in place,
     7        printf/printk calls can be intermingled with no apparent problems.
     8
    192002-05-01      Eric Norum <eric.norum@usask.ca>
    210
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    rdc3848d0 r27ce642  
    388388  uwrite(uart, THR, val & 0xff);
    389389     
     390  /*
     391   * Wait for character to be transmitted.
     392   * This ensures that printk and printf play nicely together
     393   * when using the same serial port.
     394   * Yes, there's a performance hit here, but if we're doing
     395   * polled writes to a serial port we're probably not that
     396   * interested in efficiency anyway.....
     397   */
     398  for(;;)
     399    {
     400      if((val1=uread(uart, LSR)) & THRE)
     401      {
     402      break;
     403      }
     404    }
     405
    390406  return;
    391407}
Note: See TracChangeset for help on using the changeset viewer.