]> Zhao Yanbai Git Server - minix.git/commitdiff
Remove patch leftovers.
authorCristiano Giuffrida <cristiano@minix3.org>
Tue, 13 Jul 2010 22:40:14 +0000 (22:40 +0000)
committerCristiano Giuffrida <cristiano@minix3.org>
Tue, 13 Jul 2010 22:40:14 +0000 (22:40 +0000)
kernel/main.c
kernel/system/do_update.c

index 4b1938fdcb9bd50318f825e2091baa758409a079..f0aab345b628603b6fbea8f558dae7498456fdc0 100644 (file)
@@ -120,8 +120,6 @@ PUBLIC int main(void)
                 priv(rp)->s_sig_mgr = SRV_SM;     /* signal manager */
                 rp->p_priority = SRV_Q;                  /* priority queue */
                 rp->p_quantum_size_ms = SRV_QT;   /* quantum size */
-                rp->p_priority = SRV_Q;                  /* priority queue */
-                rp->p_quantum_size_ms = SRV_QT;   /* quantum size */
             }
             /* Priviliges for ordinary process. */
             else {
index 5a80222a169563c2a534119f330c5c4d4ffdcc53..1d1bbeff6165b1589e6c04b03b2d8e41360d8fc2 100644 (file)
@@ -41,6 +41,7 @@ PUBLIC int do_update(struct proc * caller, message * m_ptr)
   struct proc orig_dst_proc;
   struct priv orig_src_priv;
   struct priv orig_dst_priv;
+  int i;
 
   /* Lookup slots for source and destination process. */
   src_e = m_ptr->SYS_UPD_SRC_ENDPT;
@@ -78,6 +79,13 @@ PUBLIC int do_update(struct proc * caller, message * m_ptr)
   printf("do_update: curr ptproc %d\n", ptproc->p_endpoint);
 #endif
 
+  /* Let destination inherit the target mask from source. */
+  for (i=0; i < NR_SYS_PROCS; i++) {
+      if (get_sys_bit(priv(src_rp)->s_ipc_to, i)) {
+          set_sendto_bit(dst_rp, i);
+      }
+  }
+
   /* Save existing data. */
   orig_src_proc = *src_rp;
   orig_src_priv = *(priv(src_rp));