aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2017-08-30 07:30:06 +0000
committerEd Schouten <ed@FreeBSD.org>2017-08-30 07:30:06 +0000
commitb53b978a6c4ee0681ccb6a797cae760c7ba0da64 (patch)
treee65940e93dfe0d1d7decd121282c35a5539ba42d /sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
parent2b12718be6bf382e36850a71bab54700bca69588 (diff)
downloadsrc-b53b978a6c4ee0681ccb6a797cae760c7ba0da64.tar.gz
src-b53b978a6c4ee0681ccb6a797cae760c7ba0da64.zip
Complete the CloudABI networking refactoring.
Now that all of the packaged software has been adjusted to either use Flower (https://github.com/NuxiNL/flower) for making incoming/outgoing network connections or can have connections injected, there is no longer need to keep accept() around. It is now a lot easier to write networked services that are address family independent, dual-stack, testable, etc. Remove all of the bits related to accept(), but also to getsockopt(SO_ACCEPTCONN).
Notes
Notes: svn path=/head/; revision=323015
Diffstat (limited to 'sys/contrib/cloudabi/cloudabi_vdso_x86_64.S')
-rw-r--r--sys/contrib/cloudabi/cloudabi_vdso_x86_64.S30
1 files changed, 6 insertions, 24 deletions
diff --git a/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S b/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
index 18e89ed55488..217bd1cbea0a 100644
--- a/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
+++ b/sys/contrib/cloudabi/cloudabi_vdso_x86_64.S
@@ -419,45 +419,27 @@ ENTRY(cloudabi_sys_random_get)
ret
END(cloudabi_sys_random_get)
-ENTRY(cloudabi_sys_sock_accept)
- push %rdx
- mov $44, %eax
- syscall
- pop %rcx
- jc 1f
- mov %eax, (%rcx)
- xor %eax, %eax
-1:
- ret
-END(cloudabi_sys_sock_accept)
-
ENTRY(cloudabi_sys_sock_recv)
- mov $45, %eax
+ mov $44, %eax
syscall
ret
END(cloudabi_sys_sock_recv)
ENTRY(cloudabi_sys_sock_send)
- mov $46, %eax
+ mov $45, %eax
syscall
ret
END(cloudabi_sys_sock_send)
ENTRY(cloudabi_sys_sock_shutdown)
- mov $47, %eax
+ mov $46, %eax
syscall
ret
END(cloudabi_sys_sock_shutdown)
-ENTRY(cloudabi_sys_sock_stat_get)
- mov $48, %eax
- syscall
- ret
-END(cloudabi_sys_sock_stat_get)
-
ENTRY(cloudabi_sys_thread_create)
push %rsi
- mov $49, %eax
+ mov $47, %eax
syscall
pop %rcx
jc 1f
@@ -468,12 +450,12 @@ ENTRY(cloudabi_sys_thread_create)
END(cloudabi_sys_thread_create)
ENTRY(cloudabi_sys_thread_exit)
- mov $50, %eax
+ mov $48, %eax
syscall
END(cloudabi_sys_thread_exit)
ENTRY(cloudabi_sys_thread_yield)
- mov $51, %eax
+ mov $49, %eax
syscall
ret
END(cloudabi_sys_thread_yield)