Skip to content

Commit

Permalink
fix(aarch64): add size of _private to TaskTLS allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 23, 2024
1 parent 369dc08 commit 6725245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/aarch64/kernel/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Box<[Dtv; 2]>>();
let len = mem::size_of::<Box<[Dtv; 2]>>() + mem::size_of::<usize>() + block_len;

let layout = Layout::from_size_align(len, 16).unwrap();
let mut this = unsafe {
Expand Down

0 comments on commit 6725245

Please sign in to comment.