copyout() copies data to a va in a pagetable, for exec() &c
usertest that passes too many arguments, break exec
This commit is contained in:
		
							parent
							
								
									a9183883b8
								
							
						
					
					
						commit
						4655d42e3b
					
				
					 6 changed files with 91 additions and 41 deletions
				
			
		
							
								
								
									
										1
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -165,6 +165,7 @@ int             loaduvm(pde_t*, char*, struct inode *, uint, uint); | |||
| pde_t*          copyuvm(pde_t*,uint); | ||||
| void            switchuvm(struct proc*); | ||||
| void            switchkvm(); | ||||
| int             copyout(pde_t *pgdir, uint va, void *buf, uint len); | ||||
| 
 | ||||
| // number of elements in fixed-size array
 | ||||
| #define NELEM(x) (sizeof(x)/sizeof((x)[0])) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Morris
						Robert Morris