summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-03-14 00:34:03 -0700
committerOri Bernstein <ori@eigenstate.org>2019-03-14 00:34:03 -0700
commita4fdef8a867263627510ea20e9b4a758549f7c98 (patch)
tree046b9f0920f2b3ce2ddf54d7afb5357da9652712 /lib
parent4696e9dc4fda1400c881f2177183da3b024633f1 (diff)
downloadmc-a4fdef8a867263627510ea20e9b4a758549f7c98.tar.gz
Add explicit abi conversions for syscall args.
Sure, the types happen to work, but consistency is nice.
Diffstat (limited to 'lib')
-rw-r--r--lib/sys/sys+osx-x64.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sys/sys+osx-x64.myr b/lib/sys/sys+osx-x64.myr
index 9bd8346..0597074 100644
--- a/lib/sys/sys+osx-x64.myr
+++ b/lib/sys/sys+osx-x64.myr
@@ -1102,15 +1102,15 @@ const uname = {buf;
const sysctl = {mib, old, oldsz, new, newsz
/* all args already passed through a() or ar ptrs */
-> (syscall(Sys__sysctl, \
- (mib : int#), a(mib.len), old, oldsz, new, newsz) : int)
+ (mib : int#), a(mib.len), a(old), a(oldsz), a(new), a(newsz)) : int)
}
const ulock_wait = {op, uaddr, val, timeout
- -> (syscall(Sysulock_wait, a(op), uaddr, val, a(timeout)) : int)
+ -> (syscall(Sysulock_wait, a(op), a(uaddr), a(val), a(timeout)) : int)
}
const ulock_wake = {op, uaddr, wakeval
- -> (syscall(Sysulock_wake, a(op), uaddr, wakeval) : int)
+ -> (syscall(Sysulock_wake, a(op), a(uaddr), a(wakeval)) : int)
}
const waitstatus = {st