]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(struct sigcontext): sc_gpr has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi
authorRoland McGrath <roland@gnu.org>
Wed, 3 Aug 1994 01:36:31 +0000 (01:36 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 3 Aug 1994 01:36:31 +0000 (01:36 +0000)
are arranged in that order to mimic struct mips_thread_state.

sysdeps/mach/hurd/mips/sigcontext.h

index 63632e8758fd280780eabd9b53b2f733ccc3e362..2cb9459b6e6f3203310c79a1f3ee520343bb0196 100644 (file)
@@ -30,14 +30,12 @@ struct sigcontext
 
     /* Port this thread is doing an interruptible RPC on.  */
     unsigned int sc_intr_port;
-  
-    /* "General" registers.  */
-    int sc_gpr[32];
-  
-    int sc_sp;                 /* Stack pointer.  */
-    int sc_fp;                 /* Frame pointer.  */
-    int sc_pc;                 /* Instruction pointer.  */
-    int sc_ps;                 /* Processor status.  */
 
+    /* These four elements are laid out just like a `struct mips_thread_state';
+       trampoline.c knows this, so it must be changed if this changes.  */
+    int sc_gpr[31];            /* "General" registers; [0] is r1.  */
+    int sc_pc;                 /* Instruction pointer.  */
     int sc_mdlo, sc_mdhi;      /* High and low multiplication results.  */
+
+    int sc_ps;                 /* Processor status.  */
   };