opnsense-src/sys/arm
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
..
allwinner if_dwc: recognize additional rgmii phy-modes 2022-06-23 15:15:10 -03:00
altera/socfpga arm altera: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:44 -07:00
annapurna/alpine Add fdt to name of a fdt specific function 2022-05-23 15:24:35 +01:00
arm AST: rework 2022-08-02 21:11:09 +03:00
broadcom/bcm2835 Fix an indentation bug in the bcm pci driver 2022-05-23 18:24:04 +01:00
conf ARMADAXP: Add extres pseudo devices to some kernel 2022-04-04 22:29:02 -06:00
freescale pmap_mapdev: Consistently use vm_paddr_t for the first argument. 2022-07-28 15:55:10 -07:00
include elfnote: place note in a PT_NOTE program header 2022-06-28 09:51:57 +02:00
mv arm mv: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00
nvidia tegra: Fix a typo in a source code comment 2022-06-04 11:54:09 +02:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
qualcomm arm/arm64 qualcomm: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00
rockchip Add support for RK3288 SoC. 2020-12-04 16:24:44 +00:00
ti am335x: Fix a typo in a source code comment 2022-06-04 13:28:10 +02:00
xilinx arm xilinx: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 14:26:45 -07:00