summaryrefslogtreecommitdiff
path: root/lib/thread/fsbase+openbsd.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/fsbase+openbsd.myr')
-rw-r--r--lib/thread/fsbase+openbsd.myr16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/thread/fsbase+openbsd.myr b/lib/thread/fsbase+openbsd.myr
new file mode 100644
index 0000000..7ae92b2
--- /dev/null
+++ b/lib/thread/fsbase+openbsd.myr
@@ -0,0 +1,16 @@
+use sys
+
+use "types"
+
+pkg thread =
+ pkglocal const setfsbase : (h : tlshdr# -> void)
+ pkglocal const getfsbase : (-> tlshdr#)
+;;
+
+const setfsbase = {h
+ sys.__set_tcb((h : void#))
+}
+
+const getfsbase = {
+ -> (sys.__get_tcb() : tlshdr#)
+}