summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/trap.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-01-20 02:16:42 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-01-20 02:16:42 +0100
commitad1eefb3556354b0fdf58faa3b4f5498d99a1f23 (patch)
tree22de99fe15d6777620a4c7c877261469b22a1e23 /sys/src/9/pc/trap.c
parentcb0393181a80a9967c52ae73f07388d1f53666f7 (diff)
kernel: various cleanups
Diffstat (limited to 'sys/src/9/pc/trap.c')
-rw-r--r--sys/src/9/pc/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/trap.c b/sys/src/9/pc/trap.c
index c8a43bbb5..cf85bcad6 100644
--- a/sys/src/9/pc/trap.c
+++ b/sys/src/9/pc/trap.c
@@ -867,7 +867,7 @@ notify(Ureg* ureg)
if(0) print("%s %lud: notify %.8lux %.8lux %.8lux %s\n",
up->text, up->pid, ureg->pc, ureg->usp, sp, n->msg);
- if(!okaddr((ulong)up->notify, 1, 0)
+ if(!okaddr((uintptr)up->notify, 1, 0)
|| !okaddr(sp-ERRMAX-4*BY2WD, sizeof(Ureg)+ERRMAX+4*BY2WD, 1)){
qunlock(&up->debug);
pprint("suicide: bad address in notify\n");
@@ -920,7 +920,7 @@ noted(Ureg* ureg, ulong arg0)
/* sanity clause */
oureg = (ulong)nureg;
- if(!okaddr((ulong)oureg-BY2WD, BY2WD+sizeof(Ureg), 0)){
+ if(!okaddr(oureg-BY2WD, BY2WD+sizeof(Ureg), 0)){
qunlock(&up->debug);
pprint("bad ureg in noted or call to noted when not notified\n");
pexit("Suicide", 0);