s390/sclp: move uninitialized data to data section
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 30 Jun 2016 08:24:18 +0000 (10:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 31 Jul 2016 09:27:58 +0000 (05:27 -0400)
The early sclp code may be called before the bss section is
cleared. Therefore move all variables to the data section.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/sclp.c

index d88db40bdf1591897326d05a6096d6653935bde3..f08af675f36f5371ce52e219cde59e176fee8c10 100644 (file)
@@ -12,8 +12,9 @@
 #define EVTYP_VT220MSG_MASK    0x00000040
 #define EVTYP_MSG_MASK         0x40000000
 
-static char _sclp_work_area[4096] __aligned(PAGE_SIZE);
-static bool have_vt220, have_linemode;
+static char _sclp_work_area[4096] __aligned(PAGE_SIZE) __section(data);
+static bool have_vt220 __section(data);
+static bool have_linemode __section(data);
 
 static void _sclp_wait_int(void)
 {