소스 검색

Syntax error

Jeremy Soller 2 년 전
부모
커밋
8b629a562b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ld_so/tcb.rs

+ 2 - 2
src/ld_so/tcb.rs

@@ -210,7 +210,7 @@ impl Tcb {
 
     /// Architecture specific code to read a usize from the TCB - x86
     #[inline(always)]
-    #[cfg(any(target_arch = "x86")]
+    #[cfg(target_arch = "x86")]
     unsafe fn arch_read(offset: usize) -> usize {
         let value;
         asm!(
@@ -225,7 +225,7 @@ impl Tcb {
 
     /// Architecture specific code to read a usize from the TCB - x86_64
     #[inline(always)]
-    #[cfg(any(target_arch = "x86_64")]
+    #[cfg(target_arch = "x86_64")]
     unsafe fn arch_read(offset: usize) -> usize {
         let value;
         asm!(