1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Add testing printout.

This commit is contained in:
Stephen Marz 2020-05-17 15:08:01 -04:00
parent 9326255507
commit fe023e026e
2 changed files with 2 additions and 2 deletions

View File

@ -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::<fs::Inode>()) 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;
}

View File

@ -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.");
}