mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Refactor VmReader/Writer to support both kernel space and user space
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
994427c71a
commit
09b6153d29
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user