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:
parent
9326255507
commit
fe023e026e
@ -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;
|
||||
}
|
||||
|
@ -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.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user