From 63ecb272a00c6f084a33db1c6ad3e925d4dcf015 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Tue, 17 Nov 2020 03:36:58 +0000 Subject: umtx_op: reduce redundancy required for compat32 All of the compat32 variants are substantially the same, save for copyin/copyout (mostly). Apply the same kind of technique used with kevent here by having the syscall routines supply a umtx_copyops describing the operations needed. umtx_copyops carries the bare minimum needed- size of timespec and _umtx_time are used for determining if copyout is needed in the sem2_wait case. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27222 --- sys/sys/proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/proc.h') diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 21b0a2f0a41c..7a61fcde69f2 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -519,6 +519,7 @@ do { \ #define TDP_SIGFASTPENDING 0x80000000 /* Pending signal due to sigfastblock */ #define TDP2_SBPAGES 0x00000001 /* Owns sbusy on some pages */ +#define TDP2_COMPAT32RB 0x00000002 /* compat32 robust lists */ /* * Reasons that the current thread can not be run yet. -- cgit v1.2.3