Remove cmdargs and i/o redirection.
This commit is contained in:
parent
5389b7adca
commit
e9597d901b
12 changed files with 28 additions and 213 deletions
|
@ -190,6 +190,7 @@ pub fn translated_str(token: usize, ptr: *const u8) -> String {
|
|||
string
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub fn translated_ref<T>(token: usize, ptr: *const T) -> &'static T {
|
||||
let page_table = PageTable::from_token(token);
|
||||
page_table.translate_va(VirtAddr::from(ptr as usize)).unwrap().get_ref()
|
||||
|
@ -252,4 +253,4 @@ impl Iterator for UserBufferIterator {
|
|||
Some(r)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue