diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-10-20 06:59:57 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-10-20 06:59:57 +0000 |
commit | b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e (patch) | |
tree | 852f4f1992a3c9ecbb44b822df6702c7e635fc5a /sysdeps/unix/sysv/linux/powerpc/powerpc32 | |
parent | acfebba27b162b3064c616142883541eaef3f725 (diff) | |
download | glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar.gz glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar.bz2 glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.zip |
Updated to fedora-glibc-20051020T0651
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc32')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h index e47b24a09e..f65b0ed58c 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h @@ -41,3 +41,22 @@ #define _UC_VREGS 464 #define _UC_VSCR 976 #define _UC_VRSAVE 980 + +/* The registers don't have a fixed offset within ucontext because the + orginal ucontext only contained the regs pointer. Also with the + addition of VMX to the register state the mcontext may require + stronger alignment (16) then the containing ucontext (4). All access + to register state (pt_regs/mcontext) must be indirect via the regs + (uc_regs) pointer. This means we can't test the PPC32 mcontext + register offsets here. */ + +/* Tests run in stdlib/tst-ucontext-off. */ +#define TESTS \ + TEST (uc_link, _UC_LINK); \ + TEST (uc_stack.ss_sp, _UC_STACK_SP); \ + TEST (uc_stack.ss_size, _UC_STACK_SIZE); \ + TEST (uc_mcontext.regs, _UC_REGS_PTR); \ + TEST (uc_mcontext.uc_regs, _UC_REGS_PTR); \ + TEST (uc_sigmask, _UC_SIGMASK); \ + TEST (uc_reg_space, _UC_REG_SPACE); + |