fix acpi regression
This bug is introduced by commit 23910d3f. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
		
							parent
							
								
									54f7b4a396
								
							
						
					
					
						commit
						54f8e61d5b
					
				@ -355,7 +355,7 @@ static uint8_t *acpi_gpe_ioport_get_ptr(ACPIGPE *gpe, uint32_t addr)
 | 
				
			|||||||
    if (addr < gpe->len / 2) {
 | 
					    if (addr < gpe->len / 2) {
 | 
				
			||||||
        cur = gpe->sts + addr;
 | 
					        cur = gpe->sts + addr;
 | 
				
			||||||
    } else if (addr < gpe->len) {
 | 
					    } else if (addr < gpe->len) {
 | 
				
			||||||
        cur = gpe->en + addr;
 | 
					        cur = gpe->en + addr - gpe->len / 2;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        abort();
 | 
					        abort();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user