Simplify inituvm and userinit by assuming initcode fits on a page
This commit is contained in:
		
							parent
							
								
									b3cfd7fc37
								
							
						
					
					
						commit
						f53e6110be
					
				
					 3 changed files with 10 additions and 19 deletions
				
			
		
							
								
								
									
										2
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -160,7 +160,7 @@ char*           uva2ka(pde_t*, char*); | |||
| int             allocuvm(pde_t*, char*, uint); | ||||
| int             deallocuvm(pde_t *pgdir, char *addr, uint sz); | ||||
| void            freevm(pde_t*); | ||||
| void            inituvm(pde_t*, char*, char*, uint); | ||||
| void            inituvm(pde_t*, char*, uint); | ||||
| int             loaduvm(pde_t*, char*, struct inode *ip, uint, uint); | ||||
| pde_t*          copyuvm(pde_t*,uint); | ||||
| void            switchuvm(struct proc*); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Austin Clements
						Austin Clements