Allow userspace to handle IRQs (WIP). Create basic keyboard handler
This commit is contained in:
		
							parent
							
								
									4bcee99d9f
								
							
						
					
					
						commit
						36fde7c7c5
					
				
					 8 changed files with 115 additions and 24 deletions
				
			
		| 
						 | 
				
			
			@ -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() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue