summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-04-25 04:30:40 +0000
committermarcel <marcel@FreeBSD.org>2004-04-25 04:30:40 +0000
commitbb38d1c32b95f7b9f97691f39016486f9e413689 (patch)
tree149348f92e72d68fac53e2cf1b711bb4a6a7e519 /sys
parentfdb8f551303bc215edd7e19f27149b22d10cb176 (diff)
downloadFreeBSD-src-bb38d1c32b95f7b9f97691f39016486f9e413689.zip
FreeBSD-src-bb38d1c32b95f7b9f97691f39016486f9e413689.tar.gz
Don't mask TCD in IMR0 when we initialize the channel. Doing so makes
it impossible to check the interrupt status bit when we try to get a character in the low level console code.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/uart/uart_dev_sab82532.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_dev_sab82532.c b/sys/dev/uart/uart_dev_sab82532.c
index 72c297b..4763ab8 100644
--- a/sys/dev/uart/uart_dev_sab82532.c
+++ b/sys/dev/uart/uart_dev_sab82532.c
@@ -252,7 +252,7 @@ sab82532_init(struct uart_bas *bas, int baudrate, int databits, int stopbits,
sab82532_param(bas, baudrate, databits, stopbits, parity);
/* Clear interrupts. */
- uart_setreg(bas, SAB_IMR0, 0xff);
+ uart_setreg(bas, SAB_IMR0, (unsigned char)~SAB_IMR0_TCD);
uart_setreg(bas, SAB_IMR1, 0xff);
uart_barrier(bas);
uart_getreg(bas, SAB_ISR0);
OpenPOWER on IntegriCloud