Debug reads writes better, set up stdio for BSP
This commit is contained in:
parent
850792bbf1
commit
fb0df8530d
3 changed files with 13 additions and 3 deletions
|
@ -133,6 +133,15 @@ pub extern fn kmain() {
|
|||
let pid = syscall::getpid();
|
||||
println!("BSP: {:?}", pid);
|
||||
|
||||
let stdin = syscall::open("debug:".as_bytes(), 0);
|
||||
println!("STDIN: {:?}", stdin);
|
||||
|
||||
let stdout = syscall::open("debug:".as_bytes(), 0);
|
||||
println!("STDOUT: {:?}", stdout);
|
||||
|
||||
let stderr = syscall::open("debug:".as_bytes(), 0);
|
||||
println!("STDERR: {:?}", stderr);
|
||||
|
||||
let elf = elf::Elf::from(include_bytes!("../init/main")).expect("could not load elf");
|
||||
elf.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue