aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2017-08-25 11:01:39 +0000
committerEd Schouten <ed@FreeBSD.org>2017-08-25 11:01:39 +0000
commit8212ad9a99ffe76764698e4d1a5d712baed412f3 (patch)
treeee2eb92129d3b91cf6c4a08806f0058ba25051e2 /sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
parentf7eb827c4853e3ce7db46b8df597e316eab9322b (diff)
downloadsrc-8212ad9a99ffe76764698e4d1a5d712baed412f3.tar.gz
src-8212ad9a99ffe76764698e4d1a5d712baed412f3.zip
Sync CloudABI compatibility against the latest upstream version (v0.13).
With Flower (CloudABI's network connection daemon) becoming more complete, there is no longer any need for creating any unconnected sockets. Socket pairs in combination with file descriptor passing is all that is necessary, as that is what is used by Flower to pass network connections from the public internet to listening processes. Remove all of the kernel bits that were used to implement socket(), listen(), bindat() and connectat(). In principle, accept() and SO_ACCEPTCONN may also be removed, but there are still some consumers left. Obtained from: https://github.com/NuxiNL/cloudabi MFC after: 1 month
Notes
Notes: svn path=/head/; revision=322885
Diffstat (limited to 'sys/contrib/cloudabi/cloudabi_vdso_x86_64.S')
-rw-r--r--sys/contrib/cloudabi/cloudabi_vdso_x86_64.S34
1 files changed, 7 insertions, 27 deletions
diff --git a/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S b/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
index c68047cc6e3d..18e89ed55488 100644
--- a/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
+++ b/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
@@ -431,53 +431,33 @@ ENTRY(cloudabi_sys_sock_accept)
ret
END(cloudabi_sys_sock_accept)
-ENTRY(cloudabi_sys_sock_bind)
- mov %rcx, %r10
- mov $45, %eax
- syscall
- ret
-END(cloudabi_sys_sock_bind)
-
-ENTRY(cloudabi_sys_sock_connect)
- mov %rcx, %r10
- mov $46, %eax
- syscall
- ret
-END(cloudabi_sys_sock_connect)
-
-ENTRY(cloudabi_sys_sock_listen)
- mov $47, %eax
- syscall
- ret
-END(cloudabi_sys_sock_listen)
-
ENTRY(cloudabi_sys_sock_recv)
- mov $48, %eax
+ mov $45, %eax
syscall
ret
END(cloudabi_sys_sock_recv)
ENTRY(cloudabi_sys_sock_send)
- mov $49, %eax
+ mov $46, %eax
syscall
ret
END(cloudabi_sys_sock_send)
ENTRY(cloudabi_sys_sock_shutdown)
- mov $50, %eax
+ mov $47, %eax
syscall
ret
END(cloudabi_sys_sock_shutdown)
ENTRY(cloudabi_sys_sock_stat_get)
- mov $51, %eax
+ mov $48, %eax
syscall
ret
END(cloudabi_sys_sock_stat_get)
ENTRY(cloudabi_sys_thread_create)
push %rsi
- mov $52, %eax
+ mov $49, %eax
syscall
pop %rcx
jc 1f
@@ -488,12 +468,12 @@ ENTRY(cloudabi_sys_thread_create)
END(cloudabi_sys_thread_create)
ENTRY(cloudabi_sys_thread_exit)
- mov $53, %eax
+ mov $50, %eax
syscall
END(cloudabi_sys_thread_exit)
ENTRY(cloudabi_sys_thread_yield)
- mov $54, %eax
+ mov $51, %eax
syscall
ret
END(cloudabi_sys_thread_yield)