mirror of
				https://github.com/FDOS/kernel.git
				synced 2025-10-31 11:24:56 +01:00 
			
		
		
		
	From Lucho: HMAFree == 0xfff0 - bytesToAllocate is valid and may happen
if the buffers occupy exactly all HMA space up to and including the last byte at ffff:ffff. Failing caused all buffers to go low ... git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@903 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
		
							parent
							
								
									bb7f10fafc
								
							
						
					
					
						commit
						0afa773303
					
				| @ -282,7 +282,7 @@ VOID FAR * HMAalloc(COUNT bytesToAllocate) | |||||||
|   if (!DosLoadedInHMA) |   if (!DosLoadedInHMA) | ||||||
|     return NULL; |     return NULL; | ||||||
| 
 | 
 | ||||||
|   if (HMAFree >= 0xfff0 - bytesToAllocate) |   if (HMAFree > 0xfff0 - bytesToAllocate) | ||||||
|     return NULL; |     return NULL; | ||||||
| 
 | 
 | ||||||
|   HMAptr = MK_FP(0xffff, HMAFree); |   HMAptr = MK_FP(0xffff, HMAFree); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user