ref: 377381aa9dcdc3a004faac1b06aa79d0e4fa9c98
parent: 9543bdfe516ddde6d347bffed6a99c9ec5c0c40b
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Dec 13 13:22:57 EST 2017
Add renezvous syscall to 9front. Oops, missed this.
--- a/lib/sys/sys+plan9-x64.myr
+++ b/lib/sys/sys+plan9-x64.myr
@@ -162,6 +162,7 @@
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 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#)}
+