From 6df659be1022b4422719ed4f30c02dcf8c24b1cd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 12 Oct 1999 00:49:56 +0000 Subject: Update. * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Add gregset_t and fpregset_t definitions. --- sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h index 930f95d122..b1525c7521 100644 --- a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h @@ -28,6 +28,29 @@ typedef struct sigcontext mcontext_t; +/* We need explicit types for the general and floating-point register + sets. */ + +/* Type for general register. */ +typedef int greg_t; + +/* Number of general registers. */ +#define NGREG 32 + +/* Container for all general registers. */ +typedef greg_t gregset_t[NGREG]; + + +/* Type for general register. */ +typedef int fpreg_t; + +/* Number of general registers. */ +#define NFPREG 32 + +/* Container for all general registers. */ +typedef fpreg_t fpregset_t[NFPREG]; + + /* Userlevel context. */ typedef struct ucontext { -- cgit 1.4.1