aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2022-07-19 09:20:51 +0800
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-26 12:35:12 -0300
commitf2037efbb33ffaf033b7a601a8a592d54879341c (patch)
tree4b615e6fa43e567db92679e209f94aedce0b77ac /sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym
parent45955fe61844d94f7faa660eda9e515a6571e8c3 (diff)
downloadglibc-f2037efbb33ffaf033b7a601a8a592d54879341c.tar
glibc-f2037efbb33ffaf033b7a601a8a592d54879341c.tar.gz
glibc-f2037efbb33ffaf033b7a601a8a592d54879341c.tar.bz2
glibc-f2037efbb33ffaf033b7a601a8a592d54879341c.zip
LoongArch: Linux ABI
Diffstat (limited to 'sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym')
-rw-r--r--sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym b/sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym
new file mode 100644
index 0000000000..f27afad56f
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/loongarch/ucontext_i.sym
@@ -0,0 +1,31 @@
+#include <inttypes.h>
+#include <signal.h>
+#include <stddef.h>
+#include <sys/ucontext.h>
+
+-- Constants used by the rt_sigprocmask call.
+
+SIG_BLOCK
+SIG_SETMASK
+
+_NSIG8 (_NSIG / 8)
+
+-- Offsets of the fields in the ucontext_t structure.
+#define ucontext(member) offsetof (ucontext_t, member)
+#define stack(member) ucontext (uc_stack.member)
+#define mcontext(member) ucontext (uc_mcontext.member)
+
+UCONTEXT_FLAGS ucontext (__uc_flags)
+UCONTEXT_LINK ucontext (uc_link)
+UCONTEXT_STACK ucontext (uc_stack)
+UCONTEXT_MCONTEXT ucontext (uc_mcontext)
+UCONTEXT_SIGMASK ucontext (uc_sigmask)
+
+STACK_SP stack (ss_sp)
+STACK_SIZE stack (ss_size)
+STACK_FLAGS stack (ss_flags)
+
+MCONTEXT_PC mcontext (__pc)
+MCONTEXT_GREGS mcontext (__gregs)
+
+UCONTEXT_SIZE sizeof (ucontext_t)