patch-2.2.16 linux/include/asm-s390/ptrace.h

Next file: linux/include/asm-s390/queue.h
Previous file: linux/include/asm-s390/processor.h
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/include/asm-s390/ptrace.h linux/include/asm-s390/ptrace.h
@@ -1,3 +1,4 @@
+
 /*
  *  include/asm-s390/ptrace.h
  *
@@ -27,14 +28,14 @@
 struct pt_regs 
 {
 	S390_REGS
-	long trap;
+	__u32 trap;
 };
 
 #if CONFIG_REMOTE_DEBUG
 typedef struct
 {
 	S390_REGS
-	long  trap;
+	__u32 trap;
 	__u32 crs[16];
 	s390_fp_regs fp_regs;
 } gdb_pt_regs;
@@ -133,6 +134,8 @@
  * this is the way intel does it
  */
 	per_struct per_info;
+	addr_t  ieee_instruction_pointer; 
+	/* Used to give failing instruction back to user for ieee exceptions */
 };
 
 typedef struct user_regs_struct user_regs_struct;
@@ -269,8 +272,9 @@
 	PT_CR_9=pt_off(per_info.control_regs.words.cr[0]),
 	PT_CR_10=pt_off(per_info.control_regs.words.cr[1]),
 	PT_CR_11=pt_off(per_info.control_regs.words.cr[2]),
-	PT_LASTOFF=PT_CR_11,
-	PT_ENDREGS=offsetof(user_regs_struct,per_info.lowcore.words.perc_atmid)
+	PT_IEEE_IP=pt_off(ieee_instruction_pointer),
+	PT_LASTOFF=PT_IEEE_IP,
+	PT_ENDREGS=sizeof(user_regs_struct)-1
 };
 
 #define PTRACE_AREA \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)