From 03b2bf028bdb77e6ca74ce9dc3209891b52c847c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Thu, 13 Sep 2018 17:33:47 +0200 Subject: [PATCH] zipl: Align struct lowcore to double page size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With GCC8 the following warning is displayed: In file included from cio.h:15, from stage2.h:15, from menu.h:15, from stage2.c:14: s390.h:193:1: warning: alignment 1 of ‘struct _lowcore’ is less than 8 [-Wpacked-not-aligned] } __packed; ^ Fix by aligning struct _lowcore to double page size. Signed-off-by: Jan Höppner --- zipl/boot/s390.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipl/boot/s390.h b/zipl/boot/s390.h index 279d16b8..cd507870 100644 --- a/zipl/boot/s390.h +++ b/zipl/boot/s390.h @@ -190,7 +190,7 @@ struct _lowcore { /* align to the top of the prefix area */ uint8_t pad_0x1900[0x2000-0x1900]; /* 0x1900 */ -} __packed; +} __packed __aligned(8192); #define S390_lowcore (*((struct _lowcore *) 0))