diff --git a/src/arch/aarch64/kernel/scheduler.rs b/src/arch/aarch64/kernel/scheduler.rs index eb850c1800..962c0fd6b8 100644 --- a/src/arch/aarch64/kernel/scheduler.rs +++ b/src/arch/aarch64/kernel/scheduler.rs @@ -278,7 +278,7 @@ impl TaskTLS { let off = core::cmp::max(16, usize::try_from(tls_info.align).unwrap()) - 16; let block_len = usize::try_from(tls_info.memsz).unwrap() + off; - let len = block_len + mem::size_of::>(); + let len = mem::size_of::>() + mem::size_of::() + block_len; let layout = Layout::from_size_align(len, 16).unwrap(); let mut this = unsafe {