Fetch buffer in user space as a Vec.

This commit is contained in:
Yifan Wu 2020-12-07 18:07:19 +08:00
parent 9366099b28
commit 1008d92c35
6 changed files with 49 additions and 15 deletions

View file

@ -10,7 +10,7 @@ use fs::*;
use process::*;
pub fn syscall(syscall_id: usize, args: [usize; 3]) -> isize {
println!("into syscall!");
//println!("into syscall!");
match syscall_id {
SYSCALL_WRITE => sys_write(args[0], args[1] as *const u8, args[2]),
SYSCALL_EXIT => sys_exit(args[0] as i32),