freebsd-dev/sys/powerpc/aim
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_machdep.c ppc aim flush_disable_caches: Use void casts instead of a dummy variable. 2022-04-12 14:58:58 -07:00
locore32.S
locore64.S powerpc64le: fix boot when using QEMU PowerNV 2021-11-25 16:41:46 -03:00
locore.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
mmu_oea64.c powerpc: Use __diagused for variables only used in KASSERT(). 2022-04-13 16:08:23 -07:00
mmu_oea64.h powerpc64: Split out DMAP and non-DMAP implementations of some methods 2021-05-05 20:57:33 -05:00
mmu_oea.c powerpc: Fix two typos in source code comments 2022-04-09 09:14:07 +02:00
mmu_radix.c powerpc/aim: ifdef DDB pmap debugging functions 2022-01-07 08:56:57 -07:00
moea64_native.c ppc mmoea64: Workaround set but unused warnings for RB_NEXT. 2022-04-12 14:58:58 -07:00
mp_cpudep.c powerpc cpudep_ap_setup: Quite unused variable warnings. 2022-04-12 14:58:59 -07:00
slb.c Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
trap_subr32.S AST: rework 2022-08-02 21:11:09 +03:00
trap_subr64.S AST: rework 2022-08-02 21:11:09 +03:00