summaryrefslogtreecommitdiff
path: root/lib/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-13 18:22:57 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-13 18:23:50 -0800
commit377381aa9dcdc3a004faac1b06aa79d0e4fa9c98 (patch)
treed5947a9101b33cdd9ea83be05795c33506d5b71c /lib/sys
parent9543bdfe516ddde6d347bffed6a99c9ec5c0c40b (diff)
downloadmc-377381aa9dcdc3a004faac1b06aa79d0e4fa9c98.tar.gz
Add renezvous syscall to 9front.
Oops, missed this.
Diffstat (limited to 'lib/sys')
-rw-r--r--lib/sys/sys+plan9-x64.myr3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sys/sys+plan9-x64.myr b/lib/sys/sys+plan9-x64.myr
index c49bde1..2a749ae 100644
--- a/lib/sys/sys+plan9-x64.myr
+++ b/lib/sys/sys+plan9-x64.myr
@@ -162,6 +162,7 @@ pkg sys =
const semacquire : (addr : uint32#, block : int -> int)
const tsemacquire : (addr : uint32#, ms : uint32 -> int)
const semrelease : (addr : uint32#, count : int32 -> int32)
+ const rendezvous : (tag : void#, val : void# -> void#)
extern const alloca : (sz : size -> byte#)
@@ -259,3 +260,5 @@ const errstr = {eb
const semacquire = {addr, block; -> (syscall(Syssemacquire, a(addr), a(block)) : int)}
const tsemacquire = {addr, ms; -> (syscall(Systsemacquire, a(addr), a(ms)) : int)}
const semrelease = {addr, count; -> (syscall(Syssemrelease, a(addr), a(count)) : int32)}
+const rendezvous = {tag, val; -> (syscall(Sysrendezvous, a(tag), a(val)) : void#)}
+