diff options
author | Helge Deller <deller@gmx.de> | 2022-05-26 10:28:28 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-05-26 10:28:28 +0200 |
commit | a336276fcddbbab47b6378ec67ba5b00bcb24d85 (patch) | |
tree | a5f2444ccae439205747d4e846a71fb6c25308d1 | |
parent | 652b2ab926de736d7e7ae8aa3079c72a97fdf5a2 (diff) | |
download | seabios-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.c | 2 |
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"; } |