summaryrefslogtreecommitdiff
path: root/sys/src/9/alphapc
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/alphapc
parentcb0393181a80a9967c52ae73f07388d1f53666f7 (diff)
kernel: various cleanups
Diffstat (limited to 'sys/src/9/alphapc')
-rw-r--r--sys/src/9/alphapc/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/alphapc/trap.c b/sys/src/9/alphapc/trap.c
index 0861abbce..a879ab6ca 100644
--- a/sys/src/9/alphapc/trap.c
+++ b/sys/src/9/alphapc/trap.c
@@ -562,7 +562,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-6*BY2WD, sizeof(Ureg)+ERRMAX-6*BY2WD, 1)) {
qunlock(&up->debug);
pprint("suicide: bad address or sp in notify\n");
@@ -627,7 +627,7 @@ noted(Ureg *kur, Ureg **urp, ulong arg0)
oureg = (ulong)nur;
if((oureg & (BY2V-1))
- || !okaddr((ulong)oureg-BY2WD, BY2WD+sizeof(Ureg), 0)){
+ || !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);