From d85fe6bdd5683a619f4db4e2ef7e9f6af5d3d12d Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 12 Apr 2025 17:14:01 +0200 Subject: [PATCH] Revert "Add a workaround for UB on arm64" The kernel bug that caused this has been fixed. This reverts commit 4d82cd90f8919ad620b3dde793566b4ada281b2f. --- redox-rt/src/proc.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/redox-rt/src/proc.rs b/redox-rt/src/proc.rs index 26b730b861..c04897fb3a 100644 --- a/redox-rt/src/proc.rs +++ b/redox-rt/src/proc.rs @@ -647,10 +647,6 @@ impl MmapGuard { Ok(()) } - - // Without this inline(never), UB somewhere causes the flags to be set to 0 on arm64. - // FIXME Find the UB and fix it - #[inline(never)] pub unsafe fn map_mut_anywhere<'a>( fd: usize, offset: usize,