summaryrefslogtreecommitdiff
path: root/sys/src/9/omap
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-11-09 08:19:28 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-11-09 08:19:28 +0100
commitb18a6413975a0a8d06e6d310072a0ff90b1ed541 (patch)
treef147cffbc9767014b6409ebda9a21f957689bc1b /sys/src/9/omap
parent1ffcdbab88aca698161b34096934e196370b3a21 (diff)
kernel: remove implicit Proc* argument from procctl()
procctl() is always called with up and it would not work correctly if passed a different process, so remove the Proc* argument and use up directly.
Diffstat (limited to 'sys/src/9/omap')
-rw-r--r--sys/src/9/omap/syscall.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/omap/syscall.c b/sys/src/9/omap/syscall.c
index 0a3916690..224ee2c29 100644
--- a/sys/src/9/omap/syscall.c
+++ b/sys/src/9/omap/syscall.c
@@ -104,7 +104,7 @@ notify(Ureg* ureg)
NFrame *nf;
if(up->procctl)
- procctl(up);
+ procctl();
if(up->nnote == 0)
return 0;
@@ -196,7 +196,7 @@ syscall(Ureg* ureg)
if(up->procctl == Proc_tracesyscall){
up->procctl = Proc_stopme;
- procctl(up);
+ procctl();
}
scallnr = ureg->r0;
@@ -247,9 +247,9 @@ syscall(Ureg* ureg)
ureg->r0 = ret;
if(up->procctl == Proc_tracesyscall){
- up->procctl = Proc_stopme;
s = splhi();
- procctl(up);
+ up->procctl = Proc_stopme;
+ procctl();
splx(s);
}