Abraham Gonzalez
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
2 deletions
-
pk/syscall.c
-
pk/syscall.h
|
|
|
@ -518,7 +518,7 @@ int sys_times(long* loc) |
|
|
|
kloc[0] = t / (CLOCK_FREQ / 1000000); |
|
|
|
|
|
|
|
memcpy_to_user(loc, kloc, sizeof(kloc)); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
@ -531,7 +531,7 @@ int sys_gettimeofday(long* loc) |
|
|
|
kloc[1] = (t % CLOCK_FREQ) / (CLOCK_FREQ / 1000000); |
|
|
|
|
|
|
|
memcpy_to_user(loc, kloc, sizeof(kloc)); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
@ -770,6 +770,7 @@ long do_syscall(long a0, long a1, long a2, long a3, long a4, long a5, unsigned l |
|
|
|
[SYS_readlinkat] = sys_readlinkat, |
|
|
|
[SYS_readv] = sys_readv, |
|
|
|
[SYS_riscv_hwprobe] = sys_riscv_hwprobe, |
|
|
|
[SYS_futex] = sys_stub_success, |
|
|
|
}; |
|
|
|
|
|
|
|
const static void* old_syscall_table[] = { |
|
|
|
|
|
|
|
@ -60,6 +60,7 @@ |
|
|
|
#define SYS_statx 291 |
|
|
|
#define SYS_readv 65 |
|
|
|
#define SYS_riscv_hwprobe 258 |
|
|
|
#define SYS_futex 98 |
|
|
|
|
|
|
|
#define OLD_SYSCALL_THRESHOLD 1024 |
|
|
|
#define SYS_open 1024 |
|
|
|
|