diff options
Diffstat (limited to 'arch/x86/boot/compressed/early_serial_console.c')
| -rw-r--r-- | arch/x86/boot/compressed/early_serial_console.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/boot/compressed/early_serial_console.c b/arch/x86/boot/compressed/early_serial_console.c index d3d003cb5481..70a8d1706d0f 100644 --- a/arch/x86/boot/compressed/early_serial_console.c +++ b/arch/x86/boot/compressed/early_serial_console.c @@ -1,9 +1,6 @@ #include "misc.h" -#ifdef CONFIG_EARLY_PRINTK - -int early_serial_base; +/* This might be accessed before .bss is cleared, so use .data instead. */ +int early_serial_base __section(".data"); #include "../early_serial_console.c" - -#endif |
