This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, 2005-10-14 at 09:57 -0700, Ulrich Drepper wrote: > All archs should get a definition of the TEST macro in the ucontext_i.h > files. Look at the x86-64 and i386 examples. Arch maintainers, please > send appropriate patches. The TESTS macro for s390*. blue skies, Martin. --- 2005-10-17 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS): Define. * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS): Likewise. diff -urpN libc/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h libc-s390/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h --- libc/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h 2001-08-16 07:28:49.000000000 +0200 +++ libc-s390/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h 2005-10-17 15:57:20.000000000 +0200 @@ -27,9 +27,23 @@ #define SC_FLGS 0x000 #define SC_LINK 0x004 #define SC_STCK 0x008 +#define SC_STSZ 0x010 #define SC_PSW 0x018 #define SC_GPRS 0x020 #define SC_ACRS 0x060 #define SC_FPC 0x0A0 #define SC_FPRS 0x0A8 #define SC_MASK 0x128 + +/* Tests run in stdlib/tst-ucontext-off. */ +#define TESTS \ + TEST (uc_flags, SC_FLGS); \ + TEST (uc_link, SC_LINK); \ + TEST (uc_stack.ss_sp, SC_STCK); \ + TEST (uc_stack.ss_size, SC_STSZ); \ + TEST (uc_mcontext.psw, SC_PSW); \ + TEST (uc_mcontext.gregs, SC_GPRS); \ + TEST (uc_mcontext.aregs, SC_ACRS); \ + TEST (uc_mcontext.fpregs.fpc, SC_FPC); \ + TEST (uc_mcontext.fpregs.fprs, SC_FPRS); \ + TEST (uc_sigmask, SC_MASK); diff -urpN libc/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h libc-s390/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h --- libc/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h 2001-08-16 07:28:50.000000000 +0200 +++ libc-s390/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h 2005-10-17 15:58:08.000000000 +0200 @@ -27,6 +27,7 @@ #define SC_FLGS 0x000 #define SC_LINK 0x008 #define SC_STCK 0x010 +#define SC_STSZ 0x020 #define SC_PSW 0x028 #define SC_GPRS 0x038 #define SC_ACRS 0x0B8 @@ -34,3 +35,15 @@ #define SC_FPRS 0x100 #define SC_MASK 0x180 +/* Tests run in stdlib/tst-ucontext-off. */ +#define TESTS \ + TEST (uc_flags, SC_FLGS); \ + TEST (uc_link, SC_LINK); \ + TEST (uc_stack.ss_sp, SC_STCK); \ + TEST (uc_stack.ss_size, SC_STSZ); \ + TEST (uc_mcontext.psw, SC_PSW); \ + TEST (uc_mcontext.gregs, SC_GPRS); \ + TEST (uc_mcontext.aregs, SC_ACRS); \ + TEST (uc_mcontext.fpregs.fpc, SC_FPC); \ + TEST (uc_mcontext.fpregs.fprs, SC_FPRS); \ + TEST (uc_sigmask, SC_MASK);
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |