mirror of
				https://github.com/tailix/kernel.git
				synced 2025-10-30 23:28:06 -04:00 
			
		
		
		
	Fix error
This commit is contained in:
		
							parent
							
								
									070c386c7d
								
							
						
					
					
						commit
						cf1a4931d3
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -45,8 +45,7 @@ unsigned long memory_alloc_page() | |||
| void mark_used(const unsigned long base, const unsigned long limit) | ||||
| { | ||||
|     const unsigned int start = base  / PAGE_SIZE; | ||||
| 
 | ||||
|     const unsigned int end = limit % PAGE_SIZE ? limit / PAGE_SIZE : limit / PAGE_SIZE + 1; | ||||
|     const unsigned int end   = limit / PAGE_SIZE; | ||||
| 
 | ||||
|     for (unsigned int i = start; i <= end; ++i) { | ||||
|         frames[i] = 1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Braiden Vasco
						Braiden Vasco