aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-11-13 16:40:24 -0800
committerAndrew Waterman <andrew@sifive.com>2016-11-13 16:40:24 -0800
commit558039d5465f3f06b9472c42568f38e34a52c12f (patch)
tree84f1c0c56d3ec2767c9981d20e723f18e8dd85a0 /pk
parent7a7106885367201ffbfd6f5568d8c5262dbb766d (diff)
downloadriscv-pk-558039d5465f3f06b9472c42568f38e34a52c12f.zip
riscv-pk-558039d5465f3f06b9472c42568f38e34a52c12f.tar.gz
riscv-pk-558039d5465f3f06b9472c42568f38e34a52c12f.tar.bz2
Add syscall stubs to get through libpthread initializers
Diffstat (limited to 'pk')
-rw-r--r--pk/syscall.c2
-rw-r--r--pk/syscall.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/pk/syscall.c b/pk/syscall.c
index 85139e4..c5f650c 100644
--- a/pk/syscall.c
+++ b/pk/syscall.c
@@ -455,6 +455,8 @@ long do_syscall(long a0, long a1, long a2, long a3, long a4, long a5, unsigned l
[SYS_getrlimit] = sys_stub_nosys,
[SYS_setrlimit] = sys_stub_nosys,
[SYS_chdir] = sys_chdir,
+ [SYS_set_tid_address] = sys_stub_nosys,
+ [SYS_set_robust_list] = sys_stub_nosys,
};
const static void* old_syscall_table[] = {
diff --git a/pk/syscall.h b/pk/syscall.h
index c1f3d8a..05360b7 100644
--- a/pk/syscall.h
+++ b/pk/syscall.h
@@ -49,6 +49,8 @@
#define SYS_setrlimit 164
#define SYS_getrusage 165
#define SYS_clock_gettime 113
+#define SYS_set_tid_address 96
+#define SYS_set_robust_list 99
#define OLD_SYSCALL_THRESHOLD 1024
#define SYS_open 1024