Only try to set FS on x86_64

This commit is contained in:
Jeremy Soller
2022-02-13 15:05:07 -07:00
parent 824184a66c
commit 8a2ff1ec4a
+1 -1
View File
@@ -143,7 +143,7 @@ pub unsafe fn init(sp: &'static Stack) {
const ARCH_GET_FS: usize = 0x1003;
syscall!(ARCH_PRCTL, ARCH_GET_FS, &mut tp as *mut usize);
}
#[cfg(target_os = "redox")]
#[cfg(all(target_os = "redox", target_arch = "x86_64"))]
{
let mut env = syscall::EnvRegisters::default();