Skip to content

Commit

Permalink
未在riscv上测试,添加target_arch
Browse files Browse the repository at this point in the history
  • Loading branch information
schulice committed Mar 16, 2024
1 parent 3755a51 commit 04a8ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/src/syscall/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ impl Syscall {
Self::rmdir(pathname)
}

#[cfg(target_arch = "x86_64")]
SYS_LINK => {
let old_cstr = args[0] as *const u8;
let new_cstr = args[1] as *const u8;
Expand All @@ -427,6 +428,7 @@ impl Syscall {
return Self::link(&old, &new);
}

#[cfg(target_arch = "x86_64")]
SYS_LINKAT => {
let oldfd = args[0] as i32;
let old_cstr = args[1] as *const u8;
Expand Down

0 comments on commit 04a8ab0

Please sign in to comment.