aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-05-26 10:28:28 +0200
committerHelge Deller <deller@gmx.de>2022-05-26 10:28:28 +0200
commita336276fcddbbab47b6378ec67ba5b00bcb24d85 (patch)
treea5f2444ccae439205747d4e846a71fb6c25308d1
parent652b2ab926de736d7e7ae8aa3079c72a97fdf5a2 (diff)
downloadseabios-hppa-a336276fcddbbab47b6378ec67ba5b00bcb24d85.zip
seabios-hppa-a336276fcddbbab47b6378ec67ba5b00bcb24d85.tar.gz
seabios-hppa-a336276fcddbbab47b6378ec67ba5b00bcb24d85.tar.bz2
parisc: Provide serial port name based on given hpa address
Prevent usage of the hardcoded PARISC_SERIAL_CONSOLE value and instead check the given hpa and provide the correct serial port name. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/parisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 3404578..0a60fa1 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -356,7 +356,7 @@ static const char *hpa_device_name(unsigned long hpa, int output)
{
return HPA_is_graphics_device(hpa) ? "GRAPHICS(1)" :
HPA_is_keyboard_device(hpa) ? "PS2" :
- (PARISC_SERIAL_CONSOLE == PORT_SERIAL1) ?
+ ((hpa + 0x800) == PORT_SERIAL1) ?
"SERIAL_1.9600.8.none" : "SERIAL_2.9600.8.none";
}