Skip to content

Commit 0427029

Browse files
committed
opt(shell): 优化shell的内容
1 parent ad65326 commit 0427029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/src/libs/shell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloc::{string::String, sync::Arc};
22

33
use crate::{
4-
drivers::{device, Device},
4+
drivers::device,
55
print, println,
66
};
77

@@ -84,11 +84,11 @@ impl Shell {
8484
}
8585
}
8686
Ok(_) => {
87-
// 没有数据,暂停 CPU 等待中断
87+
// No data, pause CPU until interrupt
8888
x86_64::instructions::hlt();
8989
}
9090
Err(_) => {
91-
// 读取错误,暂停 CPU
91+
// Read error, pause CPU
9292
x86_64::instructions::hlt();
9393
}
9494
}

0 commit comments

Comments
 (0)