[syslinux] [PATCH 0/1] dprintf: add debug console support
Jonathan Boeing
jonathan.n.boeing at gmail.com
Sun Feb 8 08:13:02 PST 2015
This patch adds support for printing messages through a debug console. QEMU,
for example, supports this through the debugcon facility. The benefit is that
it's *much* faster than printing over a serial port.
To print to I/O port 0x402 (the default used by SeaBIOS and OVMF),
add "-DDEBUG_IO_PORT=0x402 -DCORE_DEBUG=1" to the build CFLAGS.
To enable a debug console in QEMU that listens to I/O port 0x402 and prints to
stdio, add "-debugcon stdio -global isa-debugcon.iobase=0x402" to the QEMU
command line.
Jonathan Boeing (1):
dprintf: add debug console support
com32/include/dprintf.h | 2 +-
com32/lib/dprintf.c | 4 ++--
com32/lib/vdprintf.c | 21 ++++++++++++++++++++-
core/lwip/src/netif/undiif.c | 2 +-
mk/devel.mk | 1 +
5 files changed, 25 insertions(+), 5 deletions(-)
--
2.3.0
More information about the Syslinux
mailing list