summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIoannis Tsakpinis <iotsakp@gmail.com>2022-02-21 15:14:44 +0200
committerIoannis Tsakpinis <iotsakp@gmail.com>2022-02-21 15:33:09 +0200
commite05652f22ee5b5bcc78f69a09ed7a7ba883a928a (patch)
tree2cdccc1671480ddeee2e1153d2954408a9a0ac56
parentfd1d6cfafb4e9fb4d826175247527c7d1ca4ffc1 (diff)
downloadliburing-e05652f22ee5b5bcc78f69a09ed7a7ba883a928a.tar.gz
liburing-e05652f22ee5b5bcc78f69a09ed7a7ba883a928a.tar.bz2
Fix madvise syscall wrapper
Now uses the 3-arity syscall macro so that all parameters are passed. Signed-off-by: Ioannis Tsakpinis <iotsakp@gmail.com>
-rw-r--r--src/arch/x86/syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/syscall.h b/src/arch/x86/syscall.h
index c4ae24e..2efaef0 100644
--- a/src/arch/x86/syscall.h
+++ b/src/arch/x86/syscall.h
@@ -154,7 +154,7 @@ static inline int __sys_munmap(void *addr, size_t length)
static inline int __sys_madvise(void *addr, size_t length, int advice)
{
- return (int) __do_syscall2(__NR_madvise, addr, length);
+ return (int) __do_syscall3(__NR_madvise, addr, length, advice);
}
static inline int __sys_getrlimit(int resource, struct rlimit *rlim)