signal/tile: Move the tile specific si_codes to asm-generic/siginfo.h
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 13 Jan 2018 23:41:02 +0000 (17:41 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 15 Jan 2018 23:42:35 +0000 (17:42 -0600)
Having si_codes in many different files simply encourages duplicate definitions
that can cause problems later.  To avoid that merge the tile specific si_codes
into uapi/asm-generic/siginfo.h

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/tile/include/uapi/asm/siginfo.h
include/uapi/asm-generic/siginfo.h

index f234d24fff55cc667b7e3fe2a062099290f66a67..a812fcbf4267b6211ecf06d892e701ddef832f0a 100644 (file)
 
 #include <asm-generic/siginfo.h>
 
-/*
- * Additional Tile-specific SIGILL si_codes
- */
-#define ILL_DBLFLT     9       /* double fault */
-#define ILL_HARDWALL   10      /* user networks hardwall violation */
-#undef NSIGILL
-#define NSIGILL                10
-
 #endif /* _ASM_TILE_SIGINFO_H */
index f1c0af4f36a487e8edbcec18ffb4fd0c81c8ca5d..7a268db1c44f2ca873900ce39861f379b2e9aed6 100644 (file)
@@ -186,6 +186,10 @@ typedef struct siginfo {
 #define ILL_PRVREG     6       /* privileged register */
 #define ILL_COPROC     7       /* coprocessor error */
 #define ILL_BADSTK     8       /* internal stack error */
+#ifdef __tile__
+# define ILL_DBLFLT    9       /* double fault */
+# define ILL_HARDWALL  10      /* user networks hardwall violation */
+#endif
 #ifdef __ia64__
 # define ILL_BADIADDR  9       /* unimplemented instruction address */
 # define __ILL_BREAK   10      /* illegal break */