Fetch buffer in user space as a Vec.
This commit is contained in:
parent
9366099b28
commit
1008d92c35
6 changed files with 49 additions and 15 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue