On 8/19/23 02:48, Karim Taha wrote:
+/* mincore(2) */
+static inline abi_long do_bsd_mincore(abi_ulong target_addr, abi_ulong len,
+abi_ulong target_vec)
+{
+abi_long ret;
+void *p, *a;
+
+a = lock_user(VERIFY_WRITE, target_addr, len, 0);
+if (a == NULL) {
+return
On Sat, Aug 19, 2023 at 3:49 AM Karim Taha wrote:
> From: Stacey Son
>
> Signed-off-by: Stacey Son
> Signed-off-by: Karim Taha
> ---
> bsd-user/bsd-mem.h| 23 +++
> bsd-user/freebsd/os-syscall.c | 4
> 2 files changed, 27 insertions(+)
>
Reviewed-by: War
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/bsd-mem.h| 23 +++
bsd-user/freebsd/os-syscall.c | 4
2 files changed, 27 insertions(+)
diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h
index f76881519c..edbccd3111 100