serial: fix SERIAL directive for ports > 0
authorMatt Fleming <matt.fleming@intel.com>
Wed, 29 May 2013 14:01:12 +0000 (15:01 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 29 May 2013 14:27:28 +0000 (15:27 +0100)
commit4e682dcc05b0911365aa92c4f848daf013d3a635
tree6ade4155e5dfbe7848b4a59aa25a6950d318882f
parent5c04bb1ad89553c1541a527bf105a86e3a31e1a5
serial: fix SERIAL directive for ports > 0

There is a bug in the SERIAL directive parsing code that means that
using a port other than the first (SERIAL 0) results in a non-working
serial console. We need to use the serial port number from the config
file to offset the BIOS I/O port base address, otherwise we always
lookup the I/O port address for the first serial port instead of the one
the user specified.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/readconfig.c