(_hurdsig_rcv_interrupted_p): Function removed.
authorRoland McGrath <roland@gnu.org>
Mon, 14 Aug 1995 22:12:34 +0000 (22:12 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 14 Aug 1995 22:12:34 +0000 (22:12 +0000)
sysdeps/mach/hurd/mips/trampoline.c

index f03ad58..ba3450e 100644 (file)
@@ -227,34 +227,3 @@ _hurd_setup_sighandler (struct hurd_sigstate *ss, __sighandler_t handler,
 
   return NULL;
 }
-\f
-/* STATE describes a thread that had intr_port set (meaning it was inside
-   HURD_EINTR_RPC), after it has been thread_abort'd.  It it looks to have
-   just completed a mach_msg_trap system call that returned
-   MACH_RCV_INTERRUPTED, return nonzero and set *PORT to the receive right
-   being waited on.  */
-int
-_hurdsig_rcv_interrupted_p (struct machine_thread_all_state *state,
-                           mach_port_t *port)
-{
-  const unsigned int *const pc = (void *) state->basic.pc;
-
-  if (_hurdsig_catch_fault (SIGSEGV))
-    assert (_hurdsig_fault_sigcode == (long int) pc);
-  else
-    {
-      if (state->basic.r2 == MACH_RCV_INTERRUPTED &&
-         pc[-1] == 0xc)        /* syscall */
-       {
-         /* We did just return from a mach_msg_trap system call
-            doing a message receive that was interrupted.
-            Examine the parameters to find the receive right.  */
-         struct mach_msg_trap_args *args = (void *) &state->basic.r4;
-
-         *port = args->rcv_name;
-         return 1;
-       }
-    }
-
-  return 0;
-}