freebsd-dev/sys/amd64
Konstantin Belousov c6d31b8306 AST: rework
Make most AST handlers dynamically registered.  This allows to have
subsystem-specific handler source located in the subsystem files,
instead of making subr_trap.c aware of it.  For instance, signal
delivery code on return to userspace is now moved to kern_sig.c.

Also, it allows to have some handlers designated as the cleanup (kclear)
type, which are called both at AST and on thread/process exit.  For
instance, ast(), exit1(), and NFS server no longer need to be aware
about UFS softdep processing.

The dynamic registration also allows third-party modules to register AST
handlers if needed.  There is one caveat with loadable modules: the
code does not make any effort to ensure that the module is not unloaded
before all threads processed through AST handler in it.  In fact, this
is already present behavior for hwpmc.ko and ufs.ko.  I do not think it
is worth the efforts and the runtime overhead to try to fix it.

Reviewed by:	markj
Tested by:	emaste (arm64), pho
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D35888
2022-08-02 21:11:09 +03:00
..
acpica amd64: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
amd64 AST: rework 2022-08-02 21:11:09 +03:00
conf qat: Rename to qat_c2xxx and remove support for modern chipsets 2022-07-27 11:10:52 -04:00
ia32 Introduce the PROC_SIGCODE() macro 2022-07-18 16:27:26 +02:00
include AST: rework 2022-08-02 21:11:09 +03:00
linux Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
linux32 Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx sgx: Remove unused variable. 2022-04-07 17:01:28 -07:00
vmm AST: rework 2022-08-02 21:11:09 +03:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00