From ef9a7c09885b94eb2580a20eb16c1079a0e38211 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Thu, 8 Sep 2016 19:09:58 -0600 Subject: [PATCH] Add syscall library, make init program Rust --- lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.rs b/lib.rs index bc93fc5d..19731e1f 100644 --- a/lib.rs +++ b/lib.rs @@ -135,14 +135,14 @@ pub extern fn kmain() { 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"); + let elf = elf::Elf::from(include_bytes!("../build/init")).expect("could not load elf"); elf.run(); /* -- GitLab