mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 20:47:56 +00:00
When enable Transmitter Holding Register Empty interrupts, vuart should trigger interrupt when the THR is empty. In the previous code, only after the data is written to THR, the flag thre_int_pending is set to true. The thre_int_pending should also be true after THRE is set. Besides, add logic to make sure interrupt is in right state when vuart is initiated. Tracked-On: #2987 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>