mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
This commit is contained in:
@@ -434,7 +434,7 @@ static void btext_putc(int c)
|
||||
btext_drawchar((unsigned char)c);
|
||||
}
|
||||
|
||||
static struct console_driver btext_console __console_driver = {
|
||||
struct console_driver btext_console __console_driver = {
|
||||
.putchar = btext_putc,
|
||||
.disabled = 1,
|
||||
};
|
||||
|
||||
@@ -107,6 +107,6 @@ static int kbd_getc(void)
|
||||
return c;
|
||||
}
|
||||
|
||||
static struct console_driver pc_kbd_console __console_driver = {
|
||||
struct console_driver pc_kbd_console __console_driver = {
|
||||
.getchar = kbd_getc,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user