robert-w-gries / rxinu

Rust implementation of Xinu educational operating system
Apache License 2.0
33 stars 4 forks source link

Using wrong offset for base_pointer #62

Closed robert-w-gries closed 6 years ago

robert-w-gries commented 6 years ago
process
    .context
    .set_base_pointer(stack.as_ptr() as usize + stack.len());

We need to multiply stack.len() by mem::size_of::<usize>() to get the proper offset.