fix allocuvm() to handle sbrk() with non-page-granularity argument
(maybe this never worked, but it works now)
This commit is contained in:
		
							parent
							
								
									b738a4f1a2
								
							
						
					
					
						commit
						eb18645f17
					
				
					 5 changed files with 65 additions and 13 deletions
				
			
		
							
								
								
									
										2
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -153,8 +153,6 @@ void            uartintr(void); | |||
| void            uartputc(int); | ||||
| 
 | ||||
| // vm.c
 | ||||
| #define PGROUNDUP(sz)  ((sz+PGSIZE-1) & ~(PGSIZE-1)) | ||||
| extern pde_t    *kpgdir; | ||||
| void            pminit(void); | ||||
| void            ksegment(void); | ||||
| void            kvmalloc(void); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Morris
						Robert Morris