Allow userspace to handle IRQs (WIP). Create basic keyboard handler

This commit is contained in:
Jeremy Soller 2016-09-18 20:17:08 -06:00
parent 4bcee99d9f
commit 36fde7c7c5
8 changed files with 115 additions and 24 deletions

View file

@ -96,11 +96,11 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<usize> {
if flags & CLONE_VM == CLONE_VM {
for memory_shared in context.image.iter() {
image.push(memory_shared.borrow());
image.push(memory_shared.clone());
}
if let Some(ref heap_shared) = context.heap {
heap_option = Some(heap_shared.borrow());
heap_option = Some(heap_shared.clone());
}
} else {
for memory_shared in context.image.iter() {