summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-03-31 12:31:19 +0000
committerjsing <jsing@openbsd.org>2015-03-31 12:31:19 +0000
commit2b6a26975de515d87698316afff0177141e4db86 (patch)
tree38eda63c9d89bb200ea14172731ebe88e7976b7f /lib/libc
parentStore errors that occur during a tls_accept_socket() call on the context (diff)
downloadwireguard-openbsd-2b6a26975de515d87698316afff0177141e4db86.tar.xz
wireguard-openbsd-2b6a26975de515d87698316afff0177141e4db86.zip
Stop encoding the syscall number in the swi instruction - this has been
unused for around 8 years, when the kernel ABI was changed to use the syscall number specified in r12. ok miod@ jsg@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/arm/SYS.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/arch/arm/SYS.h b/lib/libc/arch/arm/SYS.h
index f62bd14665d..c6cfdbc4fcd 100644
--- a/lib/libc/arch/arm/SYS.h
+++ b/lib/libc/arch/arm/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.7 2014/06/04 20:13:49 matthew Exp $ */
+/* $OpenBSD: SYS.h,v 1.8 2015/03/31 12:31:19 jsing Exp $ */
/* $NetBSD: SYS.h,v 1.8 2003/08/07 16:42:02 agc Exp $ */
/*-
@@ -37,7 +37,6 @@
#include <machine/asm.h>
#include <sys/syscall.h>
-#include <arm/swi.h>
#define SYSENTRY(x) \
.weak _C_LABEL(x); \
@@ -45,8 +44,8 @@
ENTRY(_thread_sys_ ## x)
#define SYSTRAP(x) \
- ldr r12, =SYS_ ## x; \
- swi SWI_OS_NETBSD | SYS_ ## x
+ ldr r12, =SYS_ ## x; \
+ swi 0
#define CERROR _C_LABEL(__cerror)
#define _CERROR _C_LABEL(___cerror)