summaryrefslogtreecommitdiff
path: root/arch/x86/boot/compressed/early_serial_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/compressed/early_serial_console.c')
-rw-r--r--arch/x86/boot/compressed/early_serial_console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/early_serial_console.c b/arch/x86/boot/compressed/early_serial_console.c
index 261e81fb9582..70a8d1706d0f 100644
--- a/arch/x86/boot/compressed/early_serial_console.c
+++ b/arch/x86/boot/compressed/early_serial_console.c
@@ -1,5 +1,6 @@
#include "misc.h"
-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"