aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-05-26 10:08:11 +0200
committerHelge Deller <deller@gmx.de>2022-05-26 10:08:11 +0200
commit583d81f166dedf04554a7c291174f7de9fac4510 (patch)
tree172664b6438b18df49230117e081552c0eaa9c7a
parent88823e534973a02fbe3c2d9b827f8832dabe58b7 (diff)
downloadseabios-hppa-583d81f166dedf04554a7c291174f7de9fac4510.zip
seabios-hppa-583d81f166dedf04554a7c291174f7de9fac4510.tar.gz
seabios-hppa-583d81f166dedf04554a7c291174f7de9fac4510.tar.bz2
parisc: Switch serial ports 1 and 2
On real hardware, Linux detects the UART which is built-into LASI as serial port #1, and the UART which is built-into DINO as serial port #2. But to now qemu and SeaBIOS used the UART on DINO as serial port #1, which breaks qemu's possibility to use the "-serial" option to pass-through host serial ports to the guest. Fix this by swapping the addresses of PORT_SERIAL1 and PORT_SERIAL2. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/hppa_hardware.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parisc/hppa_hardware.h b/src/parisc/hppa_hardware.h
index 8bb83d5..c036d46 100644
--- a/src/parisc/hppa_hardware.h
+++ b/src/parisc/hppa_hardware.h
@@ -41,8 +41,8 @@
#define FW_CFG_IO_BASE 0xfffa0000
-#define PORT_SERIAL1 (DINO_UART_HPA + 0x800)
-#define PORT_SERIAL2 (LASI_UART_HPA + 0x800)
+#define PORT_SERIAL1 (LASI_UART_HPA + 0x800)
+#define PORT_SERIAL2 (DINO_UART_HPA + 0x800)
#define HPPA_MAX_CPUS 16 /* max. number of SMP CPUs */
#define CPU_CLOCK_MHZ 250 /* emulate a 250 MHz CPU */