aboutsummaryrefslogtreecommitdiff
path: root/gen_syscalls.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen_syscalls.sh')
-rwxr-xr-xgen_syscalls.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/gen_syscalls.sh b/gen_syscalls.sh
index 43e39b7..7e1707c 100755
--- a/gen_syscalls.sh
+++ b/gen_syscalls.sh
@@ -48,10 +48,13 @@ SED_MULTILINE='s/#define __(ARM_)?(NR_)([[:lower:]0-9_]*) (.*)$/#ifdef __\1\2\3\
cat <<-EOF > "${OUTFILE}"
/* GENERATED BY MAKEFILE */
#include <stddef.h>
-#include <asm/unistd.h>
+#include "gen_syscalls-inl.h"
#include "libsyscalls.h"
const struct syscall_entry syscall_table[] = {
$(${BUILD} | sed -Ene "${SED_MULTILINE}")
{ NULL, -1 },
};
+
+const size_t syscall_table_size =
+ sizeof(syscall_table) / sizeof(syscall_table[0]);
EOF