Remove resource_sceme, Fix syscall crate name, add fmap

This commit is contained in:
Jeremy Soller 2016-11-02 19:48:25 -06:00
parent db4acfbe8c
commit e3317f05f7
39 changed files with 130 additions and 221 deletions

View file

@ -367,11 +367,12 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<usize> {
context.heap = Some(heap_shared);
}
// Copy grant mapping
if ! grants.lock().is_empty() {
let frame = active_table.p4()[2].pointed_frame().expect("user heap not mapped");
let frame = active_table.p4()[2].pointed_frame().expect("user grants not mapped");
let flags = active_table.p4()[2].flags();
active_table.with(&mut new_table, &mut temporary_page, |mapper| {
mapper.p4_mut()[1].set(frame, flags);
mapper.p4_mut()[2].set(frame, flags);
});
}
context.grants = grants;