freebsd-src/sys/powerpc
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
..
aim AST: rework 2022-08-02 21:11:09 +03:00
amigaone powerpc amigaone: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
booke AST: rework 2022-08-02 21:11:09 +03:00
conf powerpc: enable wlan and ath modules in GENERIC64* 2022-04-28 11:42:39 +02:00
cpufreq cpufreq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:29 -07:00
fpu Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
include Remove unused openpic_devclass. 2022-05-10 10:21:38 -07:00
mambo powerpc mambo: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
mikrotik rbled: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
mpc85xx mpc85xx/pci: Conditionally reset PCI bridges 2022-07-29 21:54:20 -04:00
ofw subr_bus: restore bus_null_rescan() 2022-06-23 16:07:00 -03:00
powermac pmap_mapdev: Consistently use vm_paddr_t for the first argument. 2022-07-28 15:55:10 -07:00
powernv powerpc powernv: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
powerpc AST: rework 2022-08-02 21:11:09 +03:00
ps3 powerpc ps3: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
pseries powerpc pseries: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:38 -07:00
psim pmap_mapdev: Consistently use vm_paddr_t for the first argument. 2022-07-28 15:55:10 -07:00