]> xenbits.xensource.com Git - seabios.git/commit
serialio: Preserve Xen DebugOutputPort
authorJason Andryuk <jandryuk@gmail.com>
Wed, 24 Jun 2020 14:25:13 +0000 (10:25 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 24 Jun 2020 15:44:06 +0000 (11:44 -0400)
commitdd6a7e99b1c32ca66048673442cc7152efd08d2d
tree977673cacb0947fe69d8345fea69f76261486bd6
parent2e3de6253422112ae43e608661ba94ea6b345694
serialio: Preserve Xen DebugOutputPort

xen_preinit() runs early and changes DebugOutputPort.  qemu_preinit() runs
soon after.  inb on DebugOutputPort doesn't work on Xen, so the check
will always fail and DebugOutputPort will be cleared to 0 disabling
output.

Quick exit the function when running on Xen to preserve the modified
DebugOutputPort.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
src/hw/serialio.c