summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-03-31 12:31:20 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-03-31 12:31:20 +0000
commit9a444ecc76c309543434311089297f3c83ab821b (patch)
tree8306dee076e0116c27c6b42f4fb9703579af22cb /lib
parent2bfb27f21a894c056d382b4501309135fa8f734c (diff)
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')
-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)