aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-07-01 18:00:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-07-07 11:12:07 +0000
commit28a66fc3da3460850520389971e1194f5327f560 (patch)
treec111f38ee2e876a006921f8307614b6e6880aec5 /sys/sys
parent55976ce11a10765dee6c71b7ed6eac016bd560ef (diff)
downloadsrc-28a66fc3da3460850520389971e1194f5327f560.tar.gz
src-28a66fc3da3460850520389971e1194f5327f560.zip
Do not call FreeBSD-ABI specific code for all ABIs
Use sysentvec hooks to only call umtx_thread_exit/umtx_exec, which handle robust mutexes, for native FreeBSD ABI. Similarly, there is no sense in calling sigfastblock_clear() for non-native ABIs. Requested by: dchagin Reviewed by: dchagin, markj (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30987
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/sysent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index 869c140c06f5..f0bb084d59dc 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -322,6 +322,9 @@ void exec_sysvec_init(void *param);
void exec_sysvec_init_secondary(struct sysentvec *sv, struct sysentvec *sv2);
void exec_inittk(void);
+void exit_onexit(struct proc *p);
+void exec_onexec_old(struct thread *td);
+
#define INIT_SYSENTVEC(name, sv) \
SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, \
(sysinit_cfunc_t)exec_sysvec_init, sv);