allow sbrk(-x) to de-allocate user memory
This commit is contained in:
		
							parent
							
								
									c4cc10da7e
								
							
						
					
					
						commit
						83d2db91f7
					
				
					 4 changed files with 89 additions and 4 deletions
				
			
		
							
								
								
									
										1
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -159,6 +159,7 @@ void            vminit(void); | |||
| pde_t*          setupkvm(void); | ||||
| 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); | ||||
| int             loaduvm(pde_t*, char*, struct inode *ip, uint, uint); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Morris
						Robert Morris