diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-20 02:16:42 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-20 02:16:42 +0100 |
commit | ad1eefb3556354b0fdf58faa3b4f5498d99a1f23 (patch) | |
tree | 22de99fe15d6777620a4c7c877261469b22a1e23 /sys/src/9/ppc | |
parent | cb0393181a80a9967c52ae73f07388d1f53666f7 (diff) |
kernel: various cleanups
Diffstat (limited to 'sys/src/9/ppc')
-rw-r--r-- | sys/src/9/ppc/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/ppc/trap.c b/sys/src/9/ppc/trap.c index 5099b4d14..1dca77482 100644 --- a/sys/src/9/ppc/trap.c +++ b/sys/src/9/ppc/trap.c @@ -748,7 +748,7 @@ notify(Ureg* ur) sp = ur->usp & ~(BY2V-1); sp -= sizeof(Ureg); - if(!okaddr((ulong)up->notify, BY2WD, 0) || + if(!okaddr((uintptr)up->notify, BY2WD, 0) || !okaddr(sp-ERRMAX-4*BY2WD, sizeof(Ureg)+ERRMAX+4*BY2WD, 1)) { qunlock(&up->debug); pprint("suicide: bad address or sp in notify\n"); @@ -799,7 +799,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); |