niagara: check if a serial port is available
Reported-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
This commit is contained in:
		
							parent
							
								
									5e3a549498
								
							
						
					
					
						commit
						a5a08302d4
					
				| @ -158,9 +158,10 @@ static void niagara_init(MachineState *machine) | |||||||
|             exit(1); |             exit(1); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200, |     if (serial_hds[0]) { | ||||||
|                    serial_hds[0], DEVICE_BIG_ENDIAN); |         serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200, | ||||||
| 
 |                        serial_hds[0], DEVICE_BIG_ENDIAN); | ||||||
|  |     } | ||||||
|     empty_slot_init(NIAGARA_IOBBASE, NIAGARA_IOBSIZE); |     empty_slot_init(NIAGARA_IOBBASE, NIAGARA_IOBSIZE); | ||||||
|     sun4v_rtc_init(NIAGARA_RTC_BASE); |     sun4v_rtc_init(NIAGARA_RTC_BASE); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Artyom Tarasenko
						Artyom Tarasenko