ch4 ok on qemu/k210 && Remove some comments.
This commit is contained in:
parent
8ee3671269
commit
949f2095bb
8 changed files with 0 additions and 48 deletions
|
@ -4,7 +4,6 @@ use crate::task::current_user_token;
|
|||
const FD_STDOUT: usize = 1;
|
||||
|
||||
pub fn sys_write(fd: usize, buf: *const u8, len: usize) -> isize {
|
||||
//println!("into sys_write!");
|
||||
match fd {
|
||||
FD_STDOUT => {
|
||||
let buffers = translated_byte_buffer(current_user_token(), buf, len);
|
||||
|
|
|
@ -10,7 +10,6 @@ use fs::*;
|
|||
use process::*;
|
||||
|
||||
pub fn syscall(syscall_id: usize, args: [usize; 3]) -> isize {
|
||||
//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