aboutsummaryrefslogtreecommitdiff
path: root/pk/syscall.h
diff options
context:
space:
mode:
authormylai-mtk <ming-yi.lai@mediatek.com>2024-03-23 04:56:11 +0800
committerAndrew Waterman <andrew@sifive.com>2024-05-20 18:37:48 -0700
commit9388057c145d57b65f38a79ee5b860479feea90d (patch)
tree1f9b70abbfbdef9a711d97a97ca90cb85156ead2 /pk/syscall.h
parentec17aa2453edf3f234419854ed5818c23ba87cbd (diff)
downloadriscv-pk-9388057c145d57b65f38a79ee5b860479feea90d.zip
riscv-pk-9388057c145d57b65f38a79ee5b860479feea90d.tar.gz
riscv-pk-9388057c145d57b65f38a79ee5b860479feea90d.tar.bz2
Implement syscall readlinkat and readv (#318)
* Implement syscall readlinkat * Implement syscall readv by read syscalls Since pk lacks kernel-space dynamic memory management, we implement readv with normal read syscalls rather than forwarding it to spike
Diffstat (limited to 'pk/syscall.h')
-rw-r--r--pk/syscall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pk/syscall.h b/pk/syscall.h
index 31fb3be..6731edd 100644
--- a/pk/syscall.h
+++ b/pk/syscall.h
@@ -58,6 +58,7 @@
#define SYS_set_robust_list 99
#define SYS_madvise 233
#define SYS_statx 291
+#define SYS_readv 65
#define OLD_SYSCALL_THRESHOLD 1024
#define SYS_open 1024