summaryrefslogtreecommitdiffstats
path: root/include/asm-s390/s390-regs-common.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-09 20:33:35 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-09 20:33:35 +0000
commit116674acc97ba75a720329996877077d988443a2 (patch)
tree6a3f2ff0b612ae2ee8a3f3509370c9e6333a53b3 /include/asm-s390/s390-regs-common.h
parent71118c319fcae4a138f16e35b4f7e0a6d53ce2ca (diff)
Merge with Linux 2.4.2.
Diffstat (limited to 'include/asm-s390/s390-regs-common.h')
-rw-r--r--include/asm-s390/s390-regs-common.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/asm-s390/s390-regs-common.h b/include/asm-s390/s390-regs-common.h
index aa349a69d..7934b3dab 100644
--- a/include/asm-s390/s390-regs-common.h
+++ b/include/asm-s390/s390-regs-common.h
@@ -16,8 +16,9 @@
#ifndef __ASSEMBLY__
#include <asm/types.h>
#endif
-
+#if defined(WANT_S390_TGT_DEFS) || defined(__KERNEL__)
#define REGISTER_SIZE 4
+#endif
#define NUM_GPRS 16
#define GPR_SIZE 4
#define PSW_MASK_SIZE 4
@@ -41,8 +42,6 @@ typedef struct
__u32 addr;
} psw_t __attribute__ ((aligned(8)));
-typedef __u32 gpr_t;
-
/* 2 __u32's are used for floats instead to compile with a __STRICT_ANSI__ defined */
typedef union
{
@@ -71,6 +70,13 @@ typedef struct
freg_t fprs[NUM_FPRS];
} s390_fp_regs;
+#define FPC_EXCEPTION_MASK 0xF8000000
+#define FPC_FLAGS_MASK 0x00F80000
+#define FPC_DXC_MASK 0x0000FF00
+#define FPC_RM_MASK 0x00000003
+#define FPC_VALID_MASK ((FPC_EXCEPTION_MASK|FPC_FLAGS_MASK| \
+ FPC_DXC_MASK|FPC_RM_MASK))
+
/*
gdb structures & the kernel have this much always in common
*/
@@ -90,9 +96,11 @@ typedef struct
#define S390_BREAKPOINT_U16 ((__u16)0x0001)
#define S390_SYSCALL_OPCODE ((__u16)0x0a00)
#define S390_SYSCALL_SIZE 2
+#if defined(WANT_S390_TGT_DEFS) || defined(__KERNEL__)
#define ADDR_BITS_REMOVE(addr) ((addr)&0x7fffffff)
#endif
#endif
+#endif