aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Freimann <jfrei@linux.vnet.ibm.com>2014-02-26 11:03:29 -0500
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-04-22 07:24:49 -0400
commitda7cf2570c5fa29a02a3e8026bfff89620706d2f (patch)
tree3a6dac745dcf971ab467548e0c4ec6ae9aa3ed9f
parent21ee7ffd176a238cf185c142bd4c20d0152eda4f (diff)
s390: add fields to lowcore definition
This patch adds fields which are currently missing but needed for the correct injection of interrupts. This is based on a patch by David Hildenbrand Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
-rw-r--r--arch/s390/kernel/asm-offsets.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/kernel/asm-offsets.c b/arch/s390/kernel/asm-offsets.c
index 31e4ba4aaf17..859a7ed36c4b 100644
--- a/arch/s390/kernel/asm-offsets.c
+++ b/arch/s390/kernel/asm-offsets.c
@@ -89,17 +89,22 @@ int main(void)
89 DEFINE(__LC_PGM_ILC, offsetof(struct _lowcore, pgm_ilc)); 89 DEFINE(__LC_PGM_ILC, offsetof(struct _lowcore, pgm_ilc));
90 DEFINE(__LC_PGM_INT_CODE, offsetof(struct _lowcore, pgm_code)); 90 DEFINE(__LC_PGM_INT_CODE, offsetof(struct _lowcore, pgm_code));
91 DEFINE(__LC_TRANS_EXC_CODE, offsetof(struct _lowcore, trans_exc_code)); 91 DEFINE(__LC_TRANS_EXC_CODE, offsetof(struct _lowcore, trans_exc_code));
92 DEFINE(__LC_MON_CLASS_NR, offsetof(struct _lowcore, mon_class_num));
92 DEFINE(__LC_PER_CODE, offsetof(struct _lowcore, per_code)); 93 DEFINE(__LC_PER_CODE, offsetof(struct _lowcore, per_code));
93 DEFINE(__LC_PER_ATMID, offsetof(struct _lowcore, per_atmid)); 94 DEFINE(__LC_PER_ATMID, offsetof(struct _lowcore, per_atmid));
94 DEFINE(__LC_PER_ADDRESS, offsetof(struct _lowcore, per_address)); 95 DEFINE(__LC_PER_ADDRESS, offsetof(struct _lowcore, per_address));
96 DEFINE(__LC_EXC_ACCESS_ID, offsetof(struct _lowcore, exc_access_id));
95 DEFINE(__LC_PER_ACCESS_ID, offsetof(struct _lowcore, per_access_id)); 97 DEFINE(__LC_PER_ACCESS_ID, offsetof(struct _lowcore, per_access_id));
98 DEFINE(__LC_OP_ACCESS_ID, offsetof(struct _lowcore, op_access_id));
96 DEFINE(__LC_AR_MODE_ID, offsetof(struct _lowcore, ar_mode_id)); 99 DEFINE(__LC_AR_MODE_ID, offsetof(struct _lowcore, ar_mode_id));
100 DEFINE(__LC_MON_CODE, offsetof(struct _lowcore, monitor_code));
97 DEFINE(__LC_SUBCHANNEL_ID, offsetof(struct _lowcore, subchannel_id)); 101 DEFINE(__LC_SUBCHANNEL_ID, offsetof(struct _lowcore, subchannel_id));
98 DEFINE(__LC_SUBCHANNEL_NR, offsetof(struct _lowcore, subchannel_nr)); 102 DEFINE(__LC_SUBCHANNEL_NR, offsetof(struct _lowcore, subchannel_nr));
99 DEFINE(__LC_IO_INT_PARM, offsetof(struct _lowcore, io_int_parm)); 103 DEFINE(__LC_IO_INT_PARM, offsetof(struct _lowcore, io_int_parm));
100 DEFINE(__LC_IO_INT_WORD, offsetof(struct _lowcore, io_int_word)); 104 DEFINE(__LC_IO_INT_WORD, offsetof(struct _lowcore, io_int_word));
101 DEFINE(__LC_STFL_FAC_LIST, offsetof(struct _lowcore, stfl_fac_list)); 105 DEFINE(__LC_STFL_FAC_LIST, offsetof(struct _lowcore, stfl_fac_list));
102 DEFINE(__LC_MCCK_CODE, offsetof(struct _lowcore, mcck_interruption_code)); 106 DEFINE(__LC_MCCK_CODE, offsetof(struct _lowcore, mcck_interruption_code));
107 DEFINE(__LC_MCCK_EXT_DAM_CODE, offsetof(struct _lowcore, external_damage_code));
103 DEFINE(__LC_RST_OLD_PSW, offsetof(struct _lowcore, restart_old_psw)); 108 DEFINE(__LC_RST_OLD_PSW, offsetof(struct _lowcore, restart_old_psw));
104 DEFINE(__LC_EXT_OLD_PSW, offsetof(struct _lowcore, external_old_psw)); 109 DEFINE(__LC_EXT_OLD_PSW, offsetof(struct _lowcore, external_old_psw));
105 DEFINE(__LC_SVC_OLD_PSW, offsetof(struct _lowcore, svc_old_psw)); 110 DEFINE(__LC_SVC_OLD_PSW, offsetof(struct _lowcore, svc_old_psw));
@@ -157,6 +162,8 @@ int main(void)
157#ifdef CONFIG_32BIT 162#ifdef CONFIG_32BIT
158 DEFINE(SAVE_AREA_BASE, offsetof(struct _lowcore, extended_save_area_addr)); 163 DEFINE(SAVE_AREA_BASE, offsetof(struct _lowcore, extended_save_area_addr));
159#else /* CONFIG_32BIT */ 164#else /* CONFIG_32BIT */
165 DEFINE(__LC_DATA_EXC_CODE, offsetof(struct _lowcore, data_exc_code));
166 DEFINE(__LC_MCCK_FAIL_STOR_ADDR, offsetof(struct _lowcore, failing_storage_address));
160 DEFINE(__LC_EXT_PARAMS2, offsetof(struct _lowcore, ext_params2)); 167 DEFINE(__LC_EXT_PARAMS2, offsetof(struct _lowcore, ext_params2));
161 DEFINE(SAVE_AREA_BASE, offsetof(struct _lowcore, floating_pt_save_area)); 168 DEFINE(SAVE_AREA_BASE, offsetof(struct _lowcore, floating_pt_save_area));
162 DEFINE(__LC_PASTE, offsetof(struct _lowcore, paste)); 169 DEFINE(__LC_PASTE, offsetof(struct _lowcore, paste));