diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-11-13 16:40:24 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-11-13 16:40:24 -0800 |
commit | 558039d5465f3f06b9472c42568f38e34a52c12f (patch) | |
tree | 84f1c0c56d3ec2767c9981d20e723f18e8dd85a0 | |
parent | 7a7106885367201ffbfd6f5568d8c5262dbb766d (diff) | |
download | pk-558039d5465f3f06b9472c42568f38e34a52c12f.zip pk-558039d5465f3f06b9472c42568f38e34a52c12f.tar.gz pk-558039d5465f3f06b9472c42568f38e34a52c12f.tar.bz2 |
Add syscall stubs to get through libpthread initializers
-rw-r--r-- | pk/syscall.c | 2 | ||||
-rw-r--r-- | pk/syscall.h | 2 |
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 |