summaryrefslogtreecommitdiff
path: root/arch/i386/bits
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-12-06 18:14:45 +0100
committerrofl0r <retnyg@gmx.net>2012-12-06 18:14:49 +0100
commita631c5df53c22146389228f228506936e258379b (patch)
tree0198dd09fda0f944d0ee15c58b63e0de75a5968e /arch/i386/bits
parent120e402de66bf0791a4f76dd1ee0e089809814f3 (diff)
downloadmusl-a631c5df53c22146389228f228506936e258379b.tar.gz
musl-a631c5df53c22146389228f228506936e258379b.tar.bz2
musl-a631c5df53c22146389228f228506936e258379b.tar.xz
musl-a631c5df53c22146389228f228506936e258379b.zip
bits/signal.h: add register names for x86(_64)
glibc exposes them from ucontext.h. since that header includes signal.h, it is safe to put them into bits/signal.h, if _GNU_SOURCE is defined.
Diffstat (limited to 'arch/i386/bits')
-rw-r--r--arch/i386/bits/signal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/i386/bits/signal.h b/arch/i386/bits/signal.h
index 29455aec..2943756e 100644
--- a/arch/i386/bits/signal.h
+++ b/arch/i386/bits/signal.h
@@ -49,6 +49,26 @@ typedef struct __ucontext {
#define SA_RESETHAND 0x80000000
#define SA_RESTORER 0x04000000
+#define REG_GS 0
+#define REG_FS 1
+#define REG_ES 2
+#define REG_DS 3
+#define REG_EDI 4
+#define REG_ESI 5
+#define REG_EBP 6
+#define REG_ESP 7
+#define REG_EBX 8
+#define REG_EDX 9
+#define REG_ECX 10
+#define REG_EAX 11
+#define REG_TRAPNO 12
+#define REG_ERR 13
+#define REG_EIP 14
+#define REG_CS 15
+#define REG_EFL 16
+#define REG_UESP 17
+#define REG_SS 18
+
#endif
#define SIGHUP 1
@@ -86,3 +106,4 @@ typedef struct __ucontext {
#define SIGUNUSED SIGSYS
#define _NSIG 65
+