robert-w-gries / rxinu

Rust implementation of Xinu educational operating system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using wrong offset for base_pointer

robert-w-gries opened this issue · comments

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.