summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/bits/syscalls.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-01-27 22:33:34 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-01-27 22:34:47 +0100
commite6acefa2ddd445e7e13aa89ced6d184a08ad8da6 (patch)
tree963add8ce9b30835eab0c01dbd1e68f9c145dfb5 /libc/sysdeps/linux/nios2/bits/syscalls.h
parent61cf47568f3f81589cc4462945832c18ec3af410 (diff)
nios2: allow to build toolchain
At least allow to compile a toolchain targeting nios2 without MMU.
Diffstat (limited to 'libc/sysdeps/linux/nios2/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/nios2/bits/syscalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/nios2/bits/syscalls.h b/libc/sysdeps/linux/nios2/bits/syscalls.h
index 3214e3ce2..5be5d4d86 100644
--- a/libc/sysdeps/linux/nios2/bits/syscalls.h
+++ b/libc/sysdeps/linux/nios2/bits/syscalls.h
@@ -4,10 +4,11 @@
# error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
#endif
+#define TRAP_ID_SYSCALL 0
+
#ifndef __ASSEMBLER__
#include <errno.h>
-#include <asm/traps.h>
#define __syscall_return(type, res) \
do { \