]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/commit
Direct commit: not relevant to other branches.
authorimp <imp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 22 Dec 2013 22:31:39 +0000 (22:31 +0000)
committerimp <imp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 22 Dec 2013 22:31:39 +0000 (22:31 +0000)
commit7c700abd2d04ee9a5b5d7713f2b00b260d5e9c11
treefbeb6689da2b8692882d3b22fb266a40749372f0
parentd298d90df17c5440f9cad84d4ce98a7e2ae60221
Direct commit: not relevant to other branches.

Fix mountroot> prompt eating most of the characters by not enabling
RXRDY interrupts in the attach routine. Instead, defer this until the
first interrupt we see after the device is opened. Given the console
use case, we're guaranteed to get a TXRDY interrupt before any reads
are posted due to boot messages, which makes this work.

The real fix is to use cngrab/cnungrab function pointers to disable
RXRDY interrupts while grabbed. However, that touches the MI uart
code, so was disallowed for 10.0 due to the lateness of the hour this
fix was proposed. It works for mountroot, the most common atmel kernel
prompt use cases, but wouldn't work for GELI since it prompts later in
the boot process.

Approved by: re@ (gjb@)

git-svn-id: svn://svn.freebsd.org/base/releng/10.0@259748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/arm/at91/uart_dev_at91usart.c