浏览代码

Fix compilation on redox

Jeremy Soller 6 年之前
父节点
当前提交
5a005864a8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/ld_so/tcb.rs

+ 2 - 2
src/ld_so/tcb.rs

@@ -172,11 +172,11 @@ impl Tcb {
     #[cfg(target_os = "redox")]
     #[cfg(target_os = "redox")]
     unsafe fn os_new(size: usize) -> Result<(&'static mut [u8], &'static mut [u8])> {
     unsafe fn os_new(size: usize) -> Result<(&'static mut [u8], &'static mut [u8])> {
         let tls = Self::map(size)?;
         let tls = Self::map(size)?;
-        Ok(
+        Ok((
             tls,
             tls,
             //TODO: Consider allocating TCB as part of TLS
             //TODO: Consider allocating TCB as part of TLS
             slice::from_raw_parts_mut(0xB000_0000 as *mut u8, PAGE_SIZE)
             slice::from_raw_parts_mut(0xB000_0000 as *mut u8, PAGE_SIZE)
-        )
+        ))
     }
     }
 
 
     /// Architecture specific code to read a usize from the TCB - x86_64
     /// Architecture specific code to read a usize from the TCB - x86_64