diff options
author | 2015-03-31 12:31:19 +0000 | |
---|---|---|
committer | 2015-03-31 12:31:19 +0000 | |
commit | 2b6a26975de515d87698316afff0177141e4db86 (patch) | |
tree | 38eda63c9d89bb200ea14172731ebe88e7976b7f /lib/libc | |
parent | Store errors that occur during a tls_accept_socket() call on the context (diff) | |
download | wireguard-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.h | 7 |
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) |