summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorShao Miller2012-10-05 16:14:12 +0200
committerMichael Brown2012-10-05 16:18:57 +0200
commita712dae709adc76c76646fa1c86d2cfb5c3edfbc (patch)
tree246fe611b372b7ec0b86acba5b0354e88b6a6ab3 /src/include/ipxe
parent[int13] Do not zero %edx when jumping to a boot sector (diff)
downloadipxe-a712dae709adc76c76646fa1c86d2cfb5c3edfbc.tar.gz
ipxe-a712dae709adc76c76646fa1c86d2cfb5c3edfbc.tar.xz
ipxe-a712dae709adc76c76646fa1c86d2cfb5c3edfbc.zip
[serial] Don't enable serial console without serial support
serial_console_init() would enable serial console support without knowing if the serial driver succeeded or not. As a result, the serial console would interfere with a normal keyboard on a system lacking serial support. Reported-by: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> Signed-off-by: Shao Miller <sha0.miller@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/serial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/serial.h b/src/include/ipxe/serial.h
index c16e56ae6..b47b1d125 100644
--- a/src/include/ipxe/serial.h
+++ b/src/include/ipxe/serial.h
@@ -12,5 +12,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
extern void serial_putc ( int ch );
extern int serial_getc ( void );
extern int serial_ischar ( void );
+extern int serial_initialized;
#endif /* _IPXE_SERIAL_H */