]> Zhao Yanbai Git Server - minix.git/commitdiff
_function, function -> call_nr
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 25 Feb 2008 14:35:11 +0000 (14:35 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 25 Feb 2008 14:35:11 +0000 (14:35 +0000)
kernel/proc.c

index 0775be53c97490e10ad98047a01bea7d112cd282..c405a2c91d1b4922caaf67616d241434e6c94efe 100755 (executable)
@@ -221,11 +221,10 @@ if (src_dst_e == 0) panic("sys_call: no PM", NO_NUM);
        return(ETRAPDENIED);            /* trap denied by mask or kernel */
   }
 
-  if ((iskerneln(src_dst_p) && _function != SENDREC
-           && _function != RECEIVE)) {
+  if ((iskerneln(src_dst_p) && call_nr != SENDREC && call_nr != RECEIVE)) {
 #if DEBUG_ENABLE_IPC_WARNINGS
       kprintf("sys_call: trap %d not allowed, caller %d, src_dst %d\n", 
-          function, proc_nr(caller_ptr), src_dst);
+          call_nr, proc_nr(caller_ptr), src_dst);
 #endif
        if (caller_ptr->p_endpoint == ipc_stats_target)
                ipc_stats.call_not_allowed++;