Skip to content

Commit 04a8ab0

Browse files
committed
未在riscv上测试,添加target_arch
1 parent 3755a51 commit 04a8ab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/src/syscall/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ impl Syscall {
412412
Self::rmdir(pathname)
413413
}
414414

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

431+
#[cfg(target_arch = "x86_64")]
430432
SYS_LINKAT => {
431433
let oldfd = args[0] as i32;
432434
let old_cstr = args[1] as *const u8;

0 commit comments

Comments
 (0)