Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions crates/vm-device/src/device/pl011.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::io::Read;
use std::io::Write;
use std::sync::Arc;
use std::sync::Mutex;
use std::thread;

use bitflags::Flags;
use strum_macros::FromRepr;
Expand Down Expand Up @@ -573,9 +572,9 @@ impl<const IRQ: u32> Pl011<IRQ> {
pub fn new(mmio_range: MmioRange, irq_chip: Arc<dyn InterruptController>) -> Self {
let pl011 = Arc::new(Mutex::new(Pl011Internal::new(irq_chip)));

thread::spawn({
tokio::spawn({
let pl011 = pl011.clone();
move || {
async move {
let stdin = io::stdin();
let mut handle = stdin.lock();
let mut buffer = [0u8; 1];
Expand Down
Loading