From fe023e026e4101d7ee2c441eec4bafe445ec08ce Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Sun, 17 May 2020 15:08:01 -0400 Subject: [PATCH] Add testing printout. --- risc_v/src/syscall.rs | 2 +- risc_v/src/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/risc_v/src/syscall.rs b/risc_v/src/syscall.rs index 5261d98..637534c 100755 --- a/risc_v/src/syscall.rs +++ b/risc_v/src/syscall.rs @@ -75,7 +75,7 @@ pub unsafe fn do_syscall(mepc: usize, frame: *mut TrapFrame) -> usize { if let Ok(inode) = fs::MinixFileSystem::open(8, &path) { let inode_heap = kmalloc(size_of::()) as *mut fs::Inode; *inode_heap = inode; - add_kernel_process_args(exec_func, inode_heap as usize); + add_kernel_process_args(exec_func, inode_heap as usize); delete_process((*frame).pid as u16); return 0; } diff --git a/risc_v/src/test.rs b/risc_v/src/test.rs index d7cad3d..bb94986 100644 --- a/risc_v/src/test.rs +++ b/risc_v/src/test.rs @@ -8,6 +8,6 @@ pub fn test() { MinixFileSystem::init(8); let path = "/helloworld.elf\0".as_bytes().as_ptr(); syscall::syscall_execv(path,0); - println!(); + println!("I should never get here, execv should destroy our process."); }