Re: [PATCH 16/22] Implement mincore(2)

2023-08-20 Thread Richard Henderson
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

Re: [PATCH 16/22] Implement mincore(2)

2023-08-19 Thread Warner Losh
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

[PATCH 16/22] Implement mincore(2)

2023-08-19 Thread Karim Taha
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