Changeset 27ce642 in rtems
- Timestamp:
- 07/16/02 22:30:11 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- cd66632
- Parents:
- dc3848d0
- Location:
- c/src/lib/libbsp/i386/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/shared/ChangeLog
rdc3848d0 r27ce642 1 2002-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 1 9 2002-05-01 Eric Norum <eric.norum@usask.ca> 2 10 -
c/src/lib/libbsp/i386/shared/comm/uart.c
rdc3848d0 r27ce642 388 388 uwrite(uart, THR, val & 0xff); 389 389 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 390 406 return; 391 407 }
Note: See TracChangeset
for help on using the changeset viewer.