Support ContextList::spawn on i686

This commit is contained in:
Jeremy Soller
2022-07-29 09:27:35 -06:00
parent a1d9edee52
commit 059f2a0d07

View File

@@ -82,7 +82,7 @@ impl ContextList {
let mut stack = vec![0; 65_536].into_boxed_slice();
let offset = stack.len() - mem::size_of::<usize>();
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
unsafe {
let offset = stack.len() - mem::size_of::<usize>();
let func_ptr = stack.as_mut_ptr().add(offset);