aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-12 00:49:56 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-12 00:49:56 +0000
commit6df659be1022b4422719ed4f30c02dcf8c24b1cd (patch)
treea2598e583379f8091ff12bdaa835f1c7d7312bf4
parent48ac0597336da20bedb567734cfa10a34128008c (diff)
downloadglibc-6df659be1022b4422719ed4f30c02dcf8c24b1cd.zip
glibc-6df659be1022b4422719ed4f30c02dcf8c24b1cd.tar.gz
glibc-6df659be1022b4422719ed4f30c02dcf8c24b1cd.tar.bz2
Update.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Add gregset_t and fpregset_t definitions.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h23
2 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8434d16..89d389e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1999-10-11 Ulrich Drepper <drepper@cygnus.com>
+ * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Add gregset_t
+ and fpregset_t definitions.
+
* malloc/memprof.c (GETSP): Define for PowerPC.
(GETTIME): Fix generic version.
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
index 930f95d..b1525c7 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
{