summaryrefslogtreecommitdiffstats
path: root/src/core/serial.c
diff options
context:
space:
mode:
authorMichael Brown2006-04-24 20:31:37 +0200
committerMichael Brown2006-04-24 20:31:37 +0200
commit832e86246b37c78466a5a30159bed48ed59eb811 (patch)
treec931cdff0738445ba4b5d432784ac11af323b35a /src/core/serial.c
parent(librm_base-1b) is already an offset; no need to apply OFFSET(). (diff)
downloadipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.gz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.xz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.zip
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
Diffstat (limited to 'src/core/serial.c')
-rw-r--r--src/core/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/serial.c b/src/core/serial.c
index 29be2216..802b32a7 100644
--- a/src/core/serial.c
+++ b/src/core/serial.c
@@ -91,7 +91,7 @@
#define uart_writeb(val,addr) outb((val),(addr))
#endif
-static struct console_driver serial_console;
+struct console_driver serial_console;
/*
* void serial_putc(int ch);
@@ -229,7 +229,7 @@ static void serial_fini ( void ) {
/* Don't mark it as disabled; it's still usable */
}
-static struct console_driver serial_console __console_driver = {
+struct console_driver serial_console __console_driver = {
.putchar = serial_putc,
.getchar = serial_getc,
.iskey = serial_ischar,