]> Zhao Yanbai Git Server - minix.git/commitdiff
Disabled code to set ipc_stats_target.
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 22 Feb 2008 10:58:27 +0000 (10:58 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 22 Feb 2008 10:58:27 +0000 (10:58 +0000)
kernel/system/do_privctl.c

index a28d3c128a19e3803eb6379cb2162ac4ec612b58..d1affc6df796d14ea666b8dce4b5bb1b6e926eac 100644 (file)
@@ -54,7 +54,11 @@ message *m_ptr;                      /* pointer to request message */
         * fail, since there are only a limited number of system processes.
         * Then copy the privileges from the caller and restore some defaults.
         */
-       if ((i=get_priv(rp, SYS_PROC)) != OK) return(i);
+       if ((i=get_priv(rp, SYS_PROC)) != OK)
+       {
+               kprintf("do_privctl: out of priv structures\n");
+               return(i);
+       }
        priv_id = priv(rp)->s_id;               /* backup privilege id */
        *priv(rp) = *priv(caller_ptr);          /* copy from caller */
        priv(rp)->s_id = priv_id;               /* restore privilege id */
@@ -166,6 +170,15 @@ message *m_ptr;                    /* pointer to request message */
        if (!(priv(rp)->s_flags & SYS_PROC))
                return EPERM;
 
+#if 0 /* XXX -- do we need a call for this? */
+       if (strcmp(rp->p_name, "fxp") == 0 ||
+               strcmp(rp->p_name, "rtl8139") == 0)
+       {
+               kprintf("setting ipc_stats_target to %d\n", rp->p_endpoint);
+               ipc_stats_target= rp->p_endpoint;
+       }
+#endif
+
        /* Get the I/O range */
        caller_phys = umap_local(caller_ptr, D, (vir_bytes) m_ptr->CTL_ARG_PTR,
                sizeof(io_range));