Refactor VmReader/Writer to support both kernel space and user space

This commit is contained in:
Chen Chengjun
2024-06-28 09:45:51 +08:00
committed by Tate, Hongliang Tian
parent 994427c71a
commit 09b6153d29
5 changed files with 398 additions and 133 deletions

View File

@ -82,7 +82,7 @@ impl Default for TtyDriver {
fn console_input_callback(mut reader: VmReader) {
let tty_driver = get_tty_driver();
while reader.remain() > 0 {
let ch = reader.read_val();
let ch = reader.read_val().unwrap();
tty_driver.push_char(ch);
}
}